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:
Ilyas Hallak 2025-10-10 20:08:32 +02:00
parent 969f80c0a5
commit 615abf1d74

View File

@ -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