From 8f25c58b74552ff64cc885246d331b2aa900889b Mon Sep 17 00:00:00 2001 From: dtoro Date: Thu, 9 Apr 2026 19:03:22 +0200 Subject: [PATCH] refactor: tighten sidebars with eyebrow section headers Compact the left/right sidebars and the photo info panel: shrink panel widths, drop header height, switch top-level tree groups and metadata sections to small uppercase eyebrow labels, and tighten row padding, icon sizes, and count badges throughout. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/App.tsx | 4 +- .../src/components/heaps/ActiveHeapCard.tsx | 18 ++--- frontend/src/components/heaps/HeapsPanel.tsx | 30 ++++---- .../src/components/layout/LeftSidebar.tsx | 73 ++++++++++++------- .../src/components/layout/RightSidebar.tsx | 20 ++--- .../src/components/sidebar/PhotoInfoPanel.tsx | 12 +-- 6 files changed, 91 insertions(+), 66 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index bb4aa48..f522f99 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -56,7 +56,7 @@ function App() { {/* Left Sidebar */}
setRightSidebarOpen(false)} /> diff --git a/frontend/src/components/heaps/ActiveHeapCard.tsx b/frontend/src/components/heaps/ActiveHeapCard.tsx index 23d2cb0..07b4887 100644 --- a/frontend/src/components/heaps/ActiveHeapCard.tsx +++ b/frontend/src/components/heaps/ActiveHeapCard.tsx @@ -56,20 +56,20 @@ export function ActiveHeapCard() { })) return ( -
+
{/* Header — clickable, navigates to the heap section. */} @@ -81,7 +81,7 @@ export function ActiveHeapCard() { * so the cacti frame the photos rather than the (transparent) sky. */}
))} diff --git a/frontend/src/components/heaps/HeapsPanel.tsx b/frontend/src/components/heaps/HeapsPanel.tsx index c883362..1e35505 100644 --- a/frontend/src/components/heaps/HeapsPanel.tsx +++ b/frontend/src/components/heaps/HeapsPanel.tsx @@ -176,9 +176,10 @@ export function HeapsPanel() { return (
- {/* Section header */} + {/* Section header — eyebrow style to match the LeftSidebar + * library/folders headers. */}
setExpanded((v) => !v)} > - Heaps @@ -238,8 +238,8 @@ export function HeapsPanel() { {heaps.length === 0 && !creating && (
No heaps yet
@@ -264,7 +264,7 @@ export function HeapsPanel() {
{ if (isRenaming) return navigateToSection(`heap-${heap.id}`, { heapId: heap.id }) @@ -311,7 +311,7 @@ export function HeapsPanel() { > @@ -361,11 +361,11 @@ export function HeapsPanel() { * on the name above; the standalone Target indicator * was making heap counts sit left of the others. */} {heap.photo_count > 0 ? ( - + {heap.photo_count} ) : ( -