fix: allow sidebar to be shrunk when wider than viewport (#2456)

Co-authored-by: Shoaib Ansari <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-07-20 10:58:20 +02:00
1 parent 5fcfe242c1
commit d266c068d0
1 file changed
+2 -1
+2 -1
View File
@@ -138,7 +138,8 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
className="border-r border-border bg-card text-foreground"
resizable={{
minWidth: THREAD_SIDEBAR_MIN_WIDTH,
shouldAcceptWidth: ({ nextWidth, wrapper }) =>
shouldAcceptWidth: ({ currentWidth, nextWidth, wrapper }) =>
nextWidth <= currentWidth ||
wrapper.clientWidth - nextWidth >= THREAD_MAIN_CONTENT_MIN_WIDTH,
storageKey: THREAD_SIDEBAR_WIDTH_STORAGE_KEY,
}}