Browse Source

fix: updating panel min size and button max-width

David Hill 1 month ago
parent
commit
9a71a73f50
1 changed files with 5 additions and 5 deletions
  1. 5 5
      packages/app/src/pages/layout.tsx

+ 5 - 5
packages/app/src/pages/layout.tsx

@@ -1424,7 +1424,7 @@ export default function Layout(props: ParentProps) {
                           <Button
                           <Button
                             size="large"
                             size="large"
                             icon="plus-small"
                             icon="plus-small"
-                            class="w-full"
+                            class="w-full max-w-[256px]"
                             onClick={() => {
                             onClick={() => {
                               navigate(`/${base64Encode(p.worktree)}/session`)
                               navigate(`/${base64Encode(p.worktree)}/session`)
                               layout.mobileSidebar.hide()
                               layout.mobileSidebar.hide()
@@ -1441,7 +1441,7 @@ export default function Layout(props: ParentProps) {
                   >
                   >
                     <>
                     <>
                       <div class="py-4 px-3">
                       <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
                           New workspace
                         </Button>
                         </Button>
                       </div>
                       </div>
@@ -1512,7 +1512,7 @@ export default function Layout(props: ParentProps) {
             "hidden xl:block": true,
             "hidden xl:block": true,
             "relative shrink-0": 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">
           <div class="@container w-full h-full contain-strict">
             <SidebarContent />
             <SidebarContent />
@@ -1521,9 +1521,9 @@ export default function Layout(props: ParentProps) {
             <ResizeHandle
             <ResizeHandle
               direction="horizontal"
               direction="horizontal"
               size={layout.sidebar.width()}
               size={layout.sidebar.width()}
-              min={214}
+              min={244}
               max={window.innerWidth * 0.3 + 64}
               max={window.innerWidth * 0.3 + 64}
-              collapseThreshold={144}
+              collapseThreshold={244}
               onResize={layout.sidebar.resize}
               onResize={layout.sidebar.resize}
               onCollapse={layout.sidebar.close}
               onCollapse={layout.sidebar.close}
             />
             />