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 6181a55 commit c4459b3Copy full SHA for c4459b3
web/src/lib/layout.svelte.ts
@@ -76,6 +76,18 @@ export class LayoutState {
76
return;
77
}
78
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
+ */
91
this.lastSidebarWidth = size;
92
const rootLayout: PersistentLayoutState = {
93
sidebarWidth: this.lastSidebarWidth,
0 commit comments