summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-01-16 13:37:14 +0000
committerDavid Hill <[email protected]>2026-01-16 13:37:14 +0000
commit9a71a73f509c728dbd4459d0ff0b0909f770e6b9 (patch)
tree3bc5bbad7bd1102d66e5f124baec524d10337529
parent2190e8c656fa21e011fa8d9327f0ba9e1560d7d1 (diff)
downloadopencode-9a71a73f509c728dbd4459d0ff0b0909f770e6b9.tar.gz
opencode-9a71a73f509c728dbd4459d0ff0b0909f770e6b9.zip
fix: updating panel min size and button max-width
-rw-r--r--packages/app/src/pages/layout.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index e58b2b0c7..925f7bf87 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -1424,7 +1424,7 @@ export default function Layout(props: ParentProps) {
<Button
size="large"
icon="plus-small"
- class="w-full"
+ class="w-full max-w-[256px]"
onClick={() => {
navigate(`/${base64Encode(p.worktree)}/session`)
layout.mobileSidebar.hide()
@@ -1441,7 +1441,7 @@ export default function Layout(props: ParentProps) {
>
<>
<div class="py-4 px-3">
- <Button size="large" icon="plus-small" class="w-full" onClick={createWorkspace}>
+ <Button size="large" icon="plus-small" class="w-full max-w-[256px]" onClick={createWorkspace}>
New workspace
</Button>
</div>
@@ -1512,7 +1512,7 @@ export default function Layout(props: ParentProps) {
"hidden xl:block": true,
"relative shrink-0": true,
}}
- style={{ width: layout.sidebar.opened() ? `${layout.sidebar.width()}px` : "64px" }}
+ style={{ width: layout.sidebar.opened() ? `${Math.max(layout.sidebar.width(), 244)}px` : "64px" }}
>
<div class="@container w-full h-full contain-strict">
<SidebarContent />
@@ -1521,9 +1521,9 @@ export default function Layout(props: ParentProps) {
<ResizeHandle
direction="horizontal"
size={layout.sidebar.width()}
- min={214}
+ min={244}
max={window.innerWidth * 0.3 + 64}
- collapseThreshold={144}
+ collapseThreshold={244}
onResize={layout.sidebar.resize}
onCollapse={layout.sidebar.close}
/>