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:
parent
842c404f04
commit
969f80c0a5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user