We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb87b3c commit 47401a7Copy full SHA for 47401a7
1 file changed
src/ext/extension-page/App.svelte
@@ -63,6 +63,7 @@
63
let sidebarHidden = false;
64
let sidebarWidth = "23svw";
65
const sidebarMinWidth = "20rem";
66
+ const editorMinWidth = "20rem";
67
68
function sidebarSwitch() {
69
sidebarHidden = !sidebarHidden;
@@ -76,7 +77,7 @@
76
77
} else if (event.type === "mousemove") {
78
const vw = window.innerWidth;
79
const sw = (event.x / vw) * 100;
- sidebarWidth = `max(min(${sw}svw, 100svw - 20rem), ${sidebarMinWidth})`;
80
+ sidebarWidth = `max(min(${sw}svw, 100svw - ${editorMinWidth}), ${sidebarMinWidth})`;
81
}
82
event.preventDefault();
83
0 commit comments