Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit d266c06

Browse files
shoaib050326Shoaib Ansarijuliusmarminge
authored
fix: allow sidebar to be shrunk when wider than viewport (pingdotgg#2456)
Co-authored-by: Shoaib Ansari <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
1 parent 5fcfe24 commit d266c06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/AppSidebarLayout.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
138138
className="border-r border-border bg-card text-foreground"
139139
resizable={{
140140
minWidth: THREAD_SIDEBAR_MIN_WIDTH,
141-
shouldAcceptWidth: ({ nextWidth, wrapper }) =>
141+
shouldAcceptWidth: ({ currentWidth, nextWidth, wrapper }) =>
142+
nextWidth <= currentWidth ||
142143
wrapper.clientWidth - nextWidth >= THREAD_MAIN_CONTENT_MIN_WIDTH,
143144
storageKey: THREAD_SIDEBAR_WIDTH_STORAGE_KEY,
144145
}}

0 commit comments

Comments
 (0)