We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccfe41 commit 021b34bCopy full SHA for 021b34b
playground/src/composables/panel.ts
@@ -16,7 +16,7 @@ export const panelSizes = useLocalStorage<number[]>(
16
17
export function getInitialPanelSizes(percent: number): number[] {
18
return [
19
- percent,
+ 100 - percent * 3,
20
percent,
21
22
@@ -63,6 +63,7 @@ export function normalizePanels() {
63
watch(
64
titleHeightPercent,
65
(value: number) => {
66
- panelSizes.value = getInitialPanelSizes(value)
+ if (panelSizes.value.includes(100))
67
+ panelSizes.value = getInitialPanelSizes(value)
68
},
69
)
0 commit comments