Skip to content

Commit c4459b3

Browse files
committed
Add todo
1 parent 6181a55 commit c4459b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

web/src/lib/layout.svelte.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ export class LayoutState {
7676
return;
7777
}
7878

79+
/*
80+
TODO:
81+
*also* persist size in px to avoid sidebar changing size when reopening with
82+
a different sized window
83+
84+
need to keep the proportion for SSR as paneforge does not currently provide
85+
a way to preset a size in px (it generally works in proportions only)
86+
87+
this means there may be a shift on hydration when a new window uses an old cookie
88+
89+
see GH:svecosystem/paneforge/issues/91
90+
*/
7991
this.lastSidebarWidth = size;
8092
const rootLayout: PersistentLayoutState = {
8193
sidebarWidth: this.lastSidebarWidth,

0 commit comments

Comments
 (0)