The open source coding agent.
TypeScript
fix: updating panel min size and button max-width
David Hill9a71a73f509c
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsxindex e58b2b0c727..925f7bf8715 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) {<Buttonsize="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) {<ResizeHandledirection="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}/>