diff --git a/apps/app/src/components-v2/layout/SidebarHeader.vue b/apps/app/src/components-v2/layout/SidebarHeader.vue index 1ffeaec5..df6a0420 100644 --- a/apps/app/src/components-v2/layout/SidebarHeader.vue +++ b/apps/app/src/components-v2/layout/SidebarHeader.vue @@ -12,29 +12,24 @@ * - Desktop (>=lg): toggle the persistent sidebar between expanded/collapsed * → call toggleSidebar(). * - * CSS translation (main.css → Tailwind): - * .brand → flex items-center gap-[10px] h-[var(--topbar-h,56px)] - * px-4 border-b border-[var(--p-content-border-color)] - * flex-shrink-0 relative - * .brand.collapsed → justify-center (via :class when sidebarCollapsed) - * .mark → w-8 h-8 flex-shrink-0 rounded-lg - * bg-gradient-to-br from-primary-500 to-primary-700 - * inline-flex items-center justify-center - * text-white font-bold text-sm - * .wordmark → font-bold text-base tracking-[-0.01em] whitespace-nowrap - * .pill → text-[9px] font-semibold bg-primary-50 dark:bg-primary-950 - * text-primary-600 dark:text-primary-400 px-1.5 py-px - * rounded-full uppercase tracking-[0.05em] - * .sidebar-collapse → ms-auto w-7 h-7 border-0 bg-transparent - * text-[var(--p-text-muted-color)] rounded-[var(--p-border-radius)] - * inline-flex items-center justify-center - * transition-[background,color] duration-150 - * hover:bg-[var(--p-content-hover-background)] - * hover:text-[var(--p-text-color)] + * Plan 2.5 P6-followup-styling: the collapse-toggle is decoupled from the + * brand group so the logo stays centered in the collapsed rail. + * - Expanded: justify-between row — [brand group] [collapse chevron]. + * - Collapsed: justify-center row — [logo only], with the expand chevron + * as a small floating circle absolute-positioned at the rail's right + * edge (tucked over the logo's right side with a solid background + * so the visual reads as an intentional chip, not an overlap). The + * aside's `overflow-hidden` (intentional, for the width transition) + * prevents true overhang past the rail edge — the tucked pattern is + * the visual compromise that keeps the affordance discoverable. * - *