From 9c32f5b0696615147860c0f15eb77d993fa81a45 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Wed, 3 Jun 2026 14:46:52 +0200 Subject: [PATCH] fix: strip Aura .p-drawer-content padding in mobile drawer, keep switcher bottom-anchored MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../src/components-v2/layout/AppSidebar.vue | 16 +++++++--- .../src/components-v2/layout/SidebarNav.vue | 21 ++---------- .../layout/__tests__/AppSidebar.spec.ts | 32 ++++++------------- 3 files changed, 24 insertions(+), 45 deletions(-) diff --git a/apps/app/src/components-v2/layout/AppSidebar.vue b/apps/app/src/components-v2/layout/AppSidebar.vue index b31288c7..294567e6 100644 --- a/apps/app/src/components-v2/layout/AppSidebar.vue +++ b/apps/app/src/components-v2/layout/AppSidebar.vue @@ -151,6 +151,15 @@ const mobileVisible = computed({ the *visual* viewport — if the switcher is reported clipped on a device, that dynamic-viewport (`dvh`) interaction is the remaining suspect and needs a real-device check (PrimeVue sets the mask height inline). + + Wrapper padding: Aura themes `.p-drawer-content` with + `padding: 0 {modal.padding} {modal.padding} {modal.padding}` (~20px on the + sides + bottom), which insets the whole logo/menu/switcher block from the + drawer edges. The desktop