fix: Remove maxWidth infinity from NativeWebView in BookmarkDetailView2

Removed .frame(maxWidth: .infinity) from NativeWebView which was causing
the content to be wider than the viewport. The NativeWebView now respects
the parent container's width constraints set by .padding(.horizontal, 4).
This commit is contained in:
Ilyas Hallak 2025-10-10 20:01:03 +02:00
parent 842c404f04
commit 969f80c0a5

View File

@ -50,6 +50,7 @@ struct BookmarkDetailView2: View {
.toolbar {
toolbarContent
}
.toolbarBackgroundVisibility(.hidden, for: .bottomBar)
.sheet(isPresented: $showingFontSettings) {
fontSettingsSheet
}
@ -381,7 +382,6 @@ struct BookmarkDetailView2: View {
}
}
)
.frame(maxWidth: .infinity)
.frame(height: webViewHeight)
.cornerRadius(14)
.padding(.horizontal, 4)