slideshow

This commit is contained in:
th committed 2026-04-11 01:22:52 +02:00
1 parent 988a5410f7
commit 262b853c5b
18 files changed
+1305 -30

No files matched your search

+5 -2
View File
@@ -517,8 +517,11 @@ const editorPane = $('editor-pane');
function applyEditorSplit() {
if (!state.previewVisible) return;
if (editorPane) editorPane.style.flex = `0 0 ${editorSplit}%`;
preview.style.flex = `0 0 ${100 - editorSplit}%`;
// Use grow-based splits with flex-basis:0 so both panes share the available
// space AFTER the divider is subtracted. Using `0 0 X%` overflows the container
// because X% + (100-X)% + divider > 100%, which clips content on the right.
if (editorPane) editorPane.style.flex = `${editorSplit} 1 0`;
preview.style.flex = `${100 - editorSplit} 1 0`;
}
$('toggle-preview')?.addEventListener('click', () => {