diff --git a/src/components/CommandPalette.tsx b/src/components/CommandPalette.tsx index d78f3f0..42a09a4 100644 --- a/src/components/CommandPalette.tsx +++ b/src/components/CommandPalette.tsx @@ -191,7 +191,8 @@ export function CommandPalette({ isOpen, onClose, onAction }: CommandPaletteProp display: 'flex', alignItems: 'flex-start', justifyContent: 'center', - paddingTop: '12vh', + padding: '8px', + paddingTop: 'max(8px, 10vh)', backdropFilter: 'blur(4px)', WebkitBackdropFilter: 'blur(4px)', animation: prefersReducedMotion ? 'none' : 'palette-overlay-in 0.2s ease-out forwards', @@ -200,10 +201,9 @@ export function CommandPalette({ isOpen, onClose, onAction }: CommandPaletteProp > {/* Palette modal */}
{/* Search input row */}
@@ -276,10 +276,9 @@ export function CommandPalette({ isOpen, onClose, onAction }: CommandPaletteProp ref={resultsRef} role="listbox" aria-label="Search results" - className="pmr-scrollbar" + className="pmr-scrollbar p-2 md:p-[8px]" style={{ overflowY: 'auto', - padding: '8px', flex: 1, }} > @@ -387,11 +386,10 @@ export function CommandPalette({ isOpen, onClose, onAction }: CommandPaletteProp {/* Footer with keyboard hints */}
- {/* Sidebar — fixed left */} + {/* Sidebar — hidden on mobile/tablet, visible on desktop */} @@ -138,21 +139,13 @@ export function DashboardLayout() { animate="visible" variants={contentVariants} aria-label="Dashboard content" - className="pmr-scrollbar" + className="pmr-scrollbar p-4 pb-8 md:p-6 md:pb-10 lg:px-7 lg:pt-6 lg:pb-10" style={{ flex: 1, overflowY: 'auto', - padding: '24px 28px 40px', }} > -
+
{/* PatientSummaryTile — full width */} diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index 07847bb..0c81f58 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -34,7 +34,7 @@ export function TopBar({ onSearchClick }: TopBarProps) { aria-hidden="true" /> + HMC + + {/* Session info (right) */} -
+
Active Session · {currentTime} + + {currentTime} +
) diff --git a/src/index.css b/src/index.css index 4098b8d..260b4ac 100644 --- a/src/index.css +++ b/src/index.css @@ -266,14 +266,25 @@ html { background: var(--text-tertiary); } -/* Dashboard card grid responsive */ +/* Dashboard card grid responsive — mobile-first */ .dashboard-grid { - grid-template-columns: repeat(2, 1fr); + display: grid; + grid-template-columns: 1fr; + gap: 12px; } -@media (max-width: 900px) { +/* Tablet: 2 columns on wider screens */ +@media (min-width: 768px) { .dashboard-grid { - grid-template-columns: 1fr; + grid-template-columns: repeat(2, 1fr); + gap: 16px; + } +} + +/* Desktop: maintain 2 columns with generous gap */ +@media (min-width: 1024px) { + .dashboard-grid { + gap: 16px; } } @@ -325,16 +336,17 @@ html { } } -/* Activity grid responsive */ +/* Activity grid responsive — mobile-first (used in CareerActivityTile) */ .activity-grid { display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: 1fr; gap: 10px; } -@media (max-width: 900px) { +/* Tablet and up: 2 columns */ +@media (min-width: 768px) { .activity-grid { - grid-template-columns: 1fr; + grid-template-columns: repeat(2, 1fr); } }