diff options
| author | Adam <[email protected]> | 2025-12-10 07:23:07 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-10 15:17:02 -0600 |
| commit | e694d4d8806857fa5035c2953027ffee03e843dc (patch) | |
| tree | 0f4d7b7b038fd3063597d7203cfac919f5fc9a20 /packages/desktop/src | |
| parent | ada40decd14fc18901486382a10b1ec1d0d21f7e (diff) | |
| download | opencode-e694d4d8806857fa5035c2953027ffee03e843dc.tar.gz opencode-e694d4d8806857fa5035c2953027ffee03e843dc.zip | |
wip(desktop): progress
Diffstat (limited to 'packages/desktop/src')
| -rw-r--r-- | packages/desktop/src/pages/layout.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/desktop/src/pages/layout.tsx b/packages/desktop/src/pages/layout.tsx index 0c8fdf6d7..4a17d01bd 100644 --- a/packages/desktop/src/pages/layout.tsx +++ b/packages/desktop/src/pages/layout.tsx @@ -94,6 +94,11 @@ export default function Layout(props: ParentProps) { setStore("lastSession", directory, params.id) }) + createEffect(() => { + const sidebarWidth = layout.sidebar.opened() ? layout.sidebar.width() : 48 + document.documentElement.style.setProperty("--dialog-left-margin", `${sidebarWidth}px`) + }) + function getDraggableId(event: unknown): string | undefined { if (typeof event !== "object" || event === null) return undefined if (!("draggable" in event)) return undefined |
