Skip to content

Keep dashboard toolbar labels on one line - #6

Merged
Akshayab merged 3 commits into
developfrom
fix/dashboard-header-layout
Nov 20, 2026
Merged

Akshayab merged 3 commits into
developfrom
fix/dashboard-header-layout

Conversation

@Akshayab

@Akshayab Akshayab commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Dashboard with sample metrics and single-line toolbar labels

What and why

The README screenshot looked broken. Fixes:

  • Toolbar wrapping (real layout bug). The dashboard title, description and action buttons competed for space in one fixed-height row, so "Edit Widgets" / "Add Widgets" wrapped inside their buttons. The title now takes priority over the description, and whole buttons move to a second row instead of wrapping their labels.
  • Hairline bars. Multi-series bar charts drew series side by side, so with ~180 buckets per hour each bar was about 1px wide. Bars now stack by default, as area charts already do (stacked={false} keeps side-by-side). Single-series bar charts (APM, Logs) are unchanged.

The README screenshot is retaken at 1440×810 @2x from the example Acme Shop dashboard with synthetic metrics.

How it was tested

Built the Docker image (runs build:selfhost: typechecks, web build, notices) and opened the example dashboard in headless Chromium at 800, 1024, 1280 and 1440 px wide:

  • Every toolbar button is 30 px tall (single-line label) at every width; the toolbar is one 50 px row from 1024 px up and wraps to two rows at 800 px. The full title is visible at all widths.

  • prettier --check passes on the changed files.

  • pnpm run format:check, typechecks and unit tests pass

  • scripts/e2e.sh passes (for intake, query or storage changes)

  • Docs and the configuration reference are updated (for new settings or behavior)

Chat about this change

~ written by ⠕ Replit

Comment thread artifacts/web/package.json Resolved
Comment thread pnpm-lock.yaml Resolved
The UI asked for "Inter" but never shipped it, so it rendered in whatever
fallback the OS had: Helvetica Neue on macOS, Arial on Windows, DejaVu or
Liberation Sans on Linux. The wider fallbacks pushed the dashboard toolbar
into wrapping, and the README screenshots (taken on Linux) looked unstyled.
Bundle it with @fontsource-variable/inter (SIL OFL, picked up by the
third-party notices) so every platform renders the same.

Multi-series bar charts drew each series side by side, so with ~180
buckets per hour every bar was about 1px wide. Stack them by default, as
area charts already do; pass stacked={false} for side-by-side bars.

Retake the README screenshot at 1440x810 @2x with the example dashboard
and synthetic metrics.
@Akshayab
Akshayab force-pushed the fix/dashboard-header-layout branch from ee90cb6 to 2b4539e Compare November 20, 2026 06:42
Its OFL-1.1 license is flagged by the Wiz license scan. The UI falls back to each OS's sans-serif font as before.

@samuelreplit samuelreplit left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Akshayab
Akshayab marked this pull request as ready for review November 20, 2026 07:05
@Akshayab
Akshayab merged commit c016efb into develop Nov 20, 2026
13 checks passed
@Akshayab
Akshayab deleted the fix/dashboard-header-layout branch November 20, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants