diff options
| author | Adam <[email protected]> | 2026-01-15 15:24:31 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-15 15:45:12 -0600 |
| commit | 472a6cc83e1ec51e7c8db4fc40d0f4f36e8dae3a (patch) | |
| tree | f734d4e0c17b479e68018755f93a023d7f3a4fd8 | |
| parent | 47d43aaf2db7ecb0c6cd5a406efa6a43db656596 (diff) | |
| download | opencode-472a6cc83e1ec51e7c8db4fc40d0f4f36e8dae3a.tar.gz opencode-472a6cc83e1ec51e7c8db4fc40d0f4f36e8dae3a.zip | |
fix(app): sidebar toggle on desktop
| -rw-r--r-- | packages/app/src/components/titlebar.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/app/src/components/titlebar.tsx b/packages/app/src/components/titlebar.tsx index 2192ed0e4..a1ce45a97 100644 --- a/packages/app/src/components/titlebar.tsx +++ b/packages/app/src/components/titlebar.tsx @@ -17,6 +17,7 @@ export function Titlebar() { const reserve = createMemo( () => platform.platform === "desktop" && (platform.os === "windows" || platform.os === "linux"), ) + const web = createMemo(() => platform.platform === "web") const getWin = () => { if (platform.platform !== "desktop") return @@ -88,7 +89,7 @@ export function Titlebar() { onClick={layout.mobileSidebar.toggle} /> <TooltipKeybind - class="hidden xl:flex shrink-0 ml-14" + class={web() ? "hidden xl:flex shrink-0 ml-14" : "hidden xl:flex shrink-0"} placement="bottom" title="Toggle sidebar" keybind={command.keybind("sidebar.toggle")} |
