mirror of
https://github.com/JonasunderscoreJones/selfhosted-overleaf-project-share.git
synced 2025-10-25 09:59:19 +02:00
fix preview width overflow
This commit is contained in:
parent
166dc84a0d
commit
64117216f9
1 changed files with 4 additions and 0 deletions
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue