fix: updating panel min size and button max-width

This commit is contained in:
David Hill
2026-01-16 13:37:14 +00:00
parent 2190e8c656
commit 9a71a73f50

View File

@@ -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}
/>