From bfa4c704eb04b0b9b389c26dc77ba84fc2e832e8 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sun, 24 May 2026 11:34:57 -0400 Subject: [PATCH] fix(analytics): tighten top-bar layout (single-line trigger, grouped cluster, compact timestamp) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three design taste fixes that ride on top of the disclaimer collapse: - Single-line profile trigger: render only `option.label` in the Select trigger; keep label+description in the open menu where the description earns its keep. Removes the two-line trigger that broke the row baseline (taller pill, vertical-center cascade). - Group Select + Info icon in an `inline-flex … shrink-0` cluster so they wrap as a single unit and the icon never orphans onto a second row under the refresh button. - Compact timestamp: "Updated less than a minute ago" → "1m ago" rendered in font-mono. Full phrase preserved via `title` attribute. Drops the localized prefix into a tooltip-only context. - Trigger width trimmed 190px → 170px since it no longer needs to fit a description line. --- .../analytics/components/analytics-header.tsx | 15 ++++++++++----- ui/src/pages/analytics/hooks.ts | 17 ++++++++++++++--- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ui/src/pages/analytics/components/analytics-header.tsx b/ui/src/pages/analytics/components/analytics-header.tsx index 7f9e826f..620fe771 100644 --- a/ui/src/pages/analytics/components/analytics-header.tsx +++ b/ui/src/pages/analytics/components/analytics-header.tsx @@ -54,10 +54,12 @@ export function AnalyticsHeader({

{t('analytics.subtitle')}

-
+