fix: Set explicit width constraint on VStack in BookmarkDetailView2
Added width: geometry.size.width to the spacer Color.clear.frame() to constrain the VStack width, matching the LegacyView implementation. This prevents NativeWebView content from overflowing the screen width. The explicit width on the spacer propagates to the parent VStack, which then constrains all child views including NativeWebView.
This commit is contained in:
parent
969f80c0a5
commit
615abf1d74
@ -106,7 +106,7 @@ struct BookmarkDetailView2: View {
|
||||
// Content (in foreground)
|
||||
VStack(alignment: .leading, spacing: 16) {
|
||||
// Spacer for header
|
||||
Color.clear.frame(height: viewModel.bookmarkDetail.imageUrl.isEmpty ? 84 : headerHeight)
|
||||
Color.clear.frame(width: geometry.size.width, height: viewModel.bookmarkDetail.imageUrl.isEmpty ? 84 : headerHeight)
|
||||
|
||||
// Title section
|
||||
titleSection
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user