fix: strip Aura .p-drawer-content padding in mobile drawer (switcher stays bottom-anchored) #29
Reference in New Issue
Block a user
Delete Branch "fix/mobile-drawer-content-padding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Corrects the mobile drawer spacing per Bert's clarification.
Two things:
growprop is fully reverted (SidebarNav's<nav>is unconditionallyflex-1again)..p-drawer-contentpadding (0 {modal.padding} {modal.padding} {modal.padding}≈ 20px sides + bottom), insetting the whole logo/menu/switcher block from the drawer edges. Plainp-0lost to it in stylesheet order, so force it off with!p-0(same pattern as the existing header!hidden). The drawer content is now edge-to-edge like the desktop<aside>; children keep their own intrinsic padding.Changes:
SidebarNav.vue(revert grow),AppSidebar.vue(p-0→!p-0, drop:grow),AppSidebar.spec.ts(swap the 2 grow tests for a!p-0contract assertion).Gate: crewli-reviewer PASS (no MUST/SHOULD FIX). Full Vitest 84 files / 582 passing, typecheck exit 0, eslint clean. Rendered at 375px via Storybook — switcher bottom-anchored, wrapper padding gone, desktop untouched.
🤖 Generated with Claude Code
Correct the mobile drawer spacing fix. The real spacing was Aura's .p-drawer-content padding (0 {modal.padding} {modal.padding} {modal.padding}, ~20px sides+bottom) insetting the whole logo/menu/switcher block from the drawer edges — plain p-0 lost to it in stylesheet order, so force it off with !p-0 (same fix pattern as header !hidden). The WorkspaceSwitcher stays bottom-anchored exactly like the desktop sidebar: revert the SidebarNav 'grow' prop and the mobile grow=false (the nav is flex-1 again). Children keep their own intrinsic padding; the drawer content is now edge-to-edge like desktop. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>