fix preview width overflow

This commit is contained in:
Jonas_Jones 2025-06-09 00:57:36 +02:00
parent 166dc84a0d
commit 64117216f9

View file

@ -328,6 +328,10 @@
let newEditorWidth = e.clientX - containerRect.left - sidebarWidth; let newEditorWidth = e.clientX - containerRect.left - sidebarWidth;
newEditorWidth = Math.max(200, Math.min(newEditorWidth, availableWidth - 200)); newEditorWidth = Math.max(200, Math.min(newEditorWidth, availableWidth - 200));
if (availableWidth - newEditorWidth < 415) {
newEditorWidth = availableWidth - 415;
}
editorEl.style.flex = "none"; editorEl.style.flex = "none";
previewContainerEl.style.flex = "none"; previewContainerEl.style.flex = "none";