From 64117216f963aa4cd4d32399c65653e1ed94cafb Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Mon, 9 Jun 2025 00:57:36 +0200 Subject: [PATCH] fix preview width overflow --- public/overleaf.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/overleaf.html b/public/overleaf.html index 4cd7db5..89766e7 100644 --- a/public/overleaf.html +++ b/public/overleaf.html @@ -328,6 +328,10 @@ let newEditorWidth = e.clientX - containerRect.left - sidebarWidth; newEditorWidth = Math.max(200, Math.min(newEditorWidth, availableWidth - 200)); + if (availableWidth - newEditorWidth < 415) { + newEditorWidth = availableWidth - 415; + } + editorEl.style.flex = "none"; previewContainerEl.style.flex = "none";