From 615abf1d74ff8a3063072ac4fb8ab8a332215cf7 Mon Sep 17 00:00:00 2001 From: Ilyas Hallak Date: Fri, 10 Oct 2025 20:08:32 +0200 Subject: [PATCH] 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. --- readeck/UI/BookmarkDetail/BookmarkDetailView2.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readeck/UI/BookmarkDetail/BookmarkDetailView2.swift b/readeck/UI/BookmarkDetail/BookmarkDetailView2.swift index ed8e886..09252a1 100644 --- a/readeck/UI/BookmarkDetail/BookmarkDetailView2.swift +++ b/readeck/UI/BookmarkDetail/BookmarkDetailView2.swift @@ -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