From 008303d043d0c8653eef9e7337cce15121e9ac83 Mon Sep 17 00:00:00 2001 From: Ilyas Hallak Date: Fri, 10 Oct 2025 17:27:27 +0200 Subject: [PATCH] fix: Prevent content overflow in NativeWebView - Added universal max-width: 100% to all elements - Added overflow-wrap, word-wrap, and word-break to body - Added overflow-x: hidden to html - Fixed pre blocks with white-space: pre-wrap and max-width - Fixed tables with display: block and overflow-x: auto - Added word-wrap to table cells This prevents wide content (long URLs, code blocks, tables) from overflowing the viewport width in iOS 26+ NativeWebView. --- readeck/UI/Components/NativeWebView.swift | 51 +++++++++++++++++------ 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/readeck/UI/Components/NativeWebView.swift b/readeck/UI/Components/NativeWebView.swift index 6aa7ddb..8a8ebda 100644 --- a/readeck/UI/Components/NativeWebView.swift +++ b/readeck/UI/Components/NativeWebView.swift @@ -119,6 +119,11 @@ struct NativeWebView: View {