From 80da73b5e10cc462745e921f79386773420aa646 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 7 Feb 2026 05:06:43 -0800 Subject: fix: prevent sidebar max width from clamping persisted size on load Return 35% max until subscriptions/feeds data loads. Previously the useMemo computed a small max from just nav items on first render, causing the library to clamp and overwrite the stored sidebar width. --- apps/web/app/reader/_components/reader-layout-shell.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/app/reader/_components/reader-layout-shell.tsx b/apps/web/app/reader/_components/reader-layout-shell.tsx index 4952662..3ff2fa8 100644 --- a/apps/web/app/reader/_components/reader-layout-shell.tsx +++ b/apps/web/app/reader/_components/reader-layout-shell.tsx @@ -60,6 +60,7 @@ export function ReaderLayoutShell({ const sidebarMaxWidth = useMemo(() => { if (typeof window === "undefined") return "35%" + if (!subscriptionsData && !customFeedsData) return "35%" const canvas = document.createElement("canvas") const maybeContext = canvas.getContext("2d") -- cgit v1.2.3