authorgravatar for shoaib050326@gmail.comShoaib <shoaib050326@gmail.com> 2026-07-20 14:28:20+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-07-20 10:58:20+02:00
logd266c068d0e8b8cd168d38cd70b885a7a9e233e2
treec6a0c862b41759510330be17ee6f2700b67fb76e
parent5fcfe242c1643eb5cee3699b160f59ad5f969fca
signature Signed by PGP key B5690EEEBB952194

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

Co-authored-by: Shoaib Ansari <shoaibansari@Shoaibs-Mac-mini.local> Co-authored-by: Julius Marminge <julius0216@outlook.com>

1 files changed, 2 insertions(+), 1 deletions(-)

apps/web/src/components/AppSidebarLayout.tsx+2-1
...@@ -138,7 +138,8 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {...@@ -138,7 +138,8 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
138 className="border-r border-border bg-card text-foreground"138 className="border-r border-border bg-card text-foreground"
139 resizable={{139 resizable={{
140 minWidth: THREAD_SIDEBAR_MIN_WIDTH,140 minWidth: THREAD_SIDEBAR_MIN_WIDTH,
141 shouldAcceptWidth: ({ nextWidth, wrapper }) =>141 shouldAcceptWidth: ({ currentWidth, nextWidth, wrapper }) =>
142 nextWidth <= currentWidth ||
142 wrapper.clientWidth - nextWidth >= THREAD_MAIN_CONTENT_MIN_WIDTH,143 wrapper.clientWidth - nextWidth >= THREAD_MAIN_CONTENT_MIN_WIDTH,
143 storageKey: THREAD_SIDEBAR_WIDTH_STORAGE_KEY,144 storageKey: THREAD_SIDEBAR_WIDTH_STORAGE_KEY,
144 }}145 }}