Skip to content

Overview KPI tiles overflow the phone viewport when the refresh/stale pill is shown #16601

Closed

Description

@clubanderson

Symptom (iPhone, spoke dashboard, Overview panel, image d5013b7 / v5)

  • The metric tiles ("36 TOTAL OPEN ISSUES", "22 TOTAL OPEN PRS", "ACTIONABLE NOW") no longer wrap their body line: "7 actionable + 9 held + 4 blocked + 7 outside" is clipped at the right edge of the card.
  • The sparkline is pushed right and overflows the tile; the whole metric grid is wider than the viewport.
  • The "⟳ refreshing after restart (3m ago) · 0/10 repos scanned · showing snapshot from …" pill is clipped at the right.
  • Label and body text render at 16px (same size as the headline number), which reads much larger than the ~13px/14px the previous build showed on the phone.

Desktop is unaffected.

Root cause

Rendered index.html at 430 px in headless Chrome with the live Overview markup:

.overview-kpis width = 483px   (viewport 430px)
.overview-kpi-stale width = 483px, white-space: nowrap
.overview-kpi-subline height = 20px (one line), scrollWidth 481

.overview-headline is display: grid with a single auto column. .overview-kpi-stale (overview.css) carries white-space: nowrap, so its min-content width is the full pill text. Whenever the pill is shown and its text is wider than the phone viewport, the grid track grows to the pill's width and every sibling — .overview-kpis, each .overview-kpi, the subline and the width: 100% sparkline — is laid out at that width and clipped by the card. The pill text got longer with the restart variant ("refreshing after restart · N/M repos scanned · showing snapshot from …", #15162), so a restart on a phone now reliably blows the layout out; the stale-since variant (#13382) has the same defect with long timestamps.

The font-size part: .overview-kpi-label and .overview-kpi-subline use var(--fs-2xs), but --fs-2xs is only defined inside .config-modal and body.display-density-tv #activity-monitor-section — never at :root. Outside those scopes the declaration is invalid at computed-value time and the elements inherit the 16px body size. The earlier phone screenshot looked smaller only because Safari was zooming the page out to fit an overflowing layout elsewhere; once that overflow was fixed the true 16px label/subline shows on the phone.

Introducing commits: 9a3e150 (#13382, nowrap stale pill in the headline grid) + 3976265 (#15162, longer restart text). The tile token rules date from 467ca6a (#15300) and earlier.

Fix

  • Let the headline pill wrap inside the card (min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere) so it can never widen the grid.
  • min-width: 0 on .overview-kpis / .overview-kpi; overflow-wrap: anywhere on the subline; max-width: 100% on the tile sparkline.
  • On ≤720px, size the tile label/subline with defined tokens (--fs-base / --fs-md) instead of the undefined --fs-2xs, restoring the previous compact phone sizing.

Update: trigger confirmed — happens right after a roll

Reopened. The user saw the oversized/clipped KPI tiles again immediately after the latest roll, and the panel returned to normal a few minutes later. That matches the root cause above: the .overview-kpi-stale pill ("refreshing after restart (Nm ago) · 0/10 repos scanned · showing snapshot …") only exists while the post-restart rescan is running. Because it is white-space: nowrap inside the single-column .overview-headline grid, its min-content width stretches the grid track and every KPI tile/subline/sparkline is laid out past the phone viewport until the pill goes away.

Secondary: --fs-2xs (used by the tile label/subline and ~160 other rules) is only defined inside .config-modal, so it resolves to the inherited body size elsewhere.

Activity

  1. hivecommons-hive commented on Nov 4, 2026

    @hivecommons-hive
    Contributor

    🔓 Claim by @thatguywob released (lease revoked).

    Claim history
    • 2026-11-04 14:02 UTC — claimed by thatguywob (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-04 14:04 UTC — released by thatguywob (contributor; lease revoked)
  2. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 4, 2026
  3. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

    @clubanderson this issue was closed by @hivecommons-hive[bot] as completed.

    If this was closed by a merged PR, the fix only takes effect once it ships in a tagged release and your deployment updates to it — check your running version against the fix before concluding the fix failed.

    If you are still seeing the problem, comment /reopen and it will be reopened for you — you do not need write access. Please add what you are still observing (running version, logs, steps) so it is not closed the same way again.

  4. added a commit that references this issue on Nov 4, 2026
    d50707e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions