You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): home content off-center when sidebar collapsed
The home page centered its content by offsetting with --cheatcode-sidebar-offset,
but that var was never set on the home route: AppSidebar (which sets it) is
Suspense-wrapped for usePathname, so its effect lagged and the root pl fell back
to the 16rem (256px = *expanded* width) default even while the sidebar was
collapsed to a 48px rail — shoving all content ~200px right of center.
- Add HomeSidebarOffset (non-suspended client) that sets the var from the store's
sidebarCollapsed (56px collapsed / 240px expanded), so the offset is always right.
- The fixed composer form used a hardcoded md:pl-64 instead of the var, so it never
re-centered on collapse — switch it to md:pl-[var(--cheatcode-sidebar-offset,16rem)].
Verified: collapsed -> greeting + composer both center at 988 (aligned); expanded -> 1080.
0 commit comments