Skip to content

fix(security): keep rescan icon glued to the scanned-time stamp#327

Merged
graydawnc merged 1 commit into
mainfrom
fix/security-meta-rescan-adjacency
May 27, 2026
Merged

fix(security): keep rescan icon glued to the scanned-time stamp#327
graydawnc merged 1 commit into
mainfrom
fix/security-meta-rescan-adjacency

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

What

On the Security page meta row, the ↻ rescan button had drifted to the row's far right (next to the Ignored entry), leaving a large gap after the "scanned X ago" stamp. This restores it to sit immediately after the stamp — reading as "last scanned · refresh" — with only the Ignored entry floating to the list's right edge.

Why

#322 deliberately paired ↻ with the stamp (the code comment still says so). #324's meta-row truncate fix then gave the stats <span> flex-1 to stop it wrapping when long — but flex-1 made the span consume the full row width, shoving ↻ against the right margin. The intent and the rendered layout diverged; this is a visual regression, not a redesign.

How

Wrap [stats + ↻] in a flex-1 min-w-0 left group (stats back to min-w-0 truncate, ↻ flex-none); Ignored stays an outer flex-none sibling, so it still aligns to the list's right edge. Keeps the no-wrap/truncate behaviour #324 wanted and the stamp↔refresh adjacency #322 wanted.

Test plan

  • Extends security-scan-meta-stability.spec.ts with an adjacency assertion: ↻'s left edge is within 24px of the stamp's right edge (under the regression it was hundreds of px away). The existing during-scan stability assertions are unchanged.
  • App package typechecks clean; meta-stability spec's other assertions still hold.

🤖 Generated with Claude Code

The Security meta row reads "N risk · … · scanned X ago [↻]   [Ignored]".
#322 placed the ↻ rescan button right after the "scanned X ago" stamp
(reads as "last scanned · refresh"), with only the Ignored entry floating
to the list's right edge. #324's meta-row truncate fix gave the stats
span `flex-1`, so it ate the full row width and shoved ↻ against the right
margin next to Ignored — a large gap opened between the stamp and ↻.

Wrap [stats + ↻] in a `flex-1 min-w-0` left group (stats `min-w-0
truncate`, ↻ `flex-none`); Ignored stays an outer `flex-none` sibling.
This keeps the no-wrap/truncate behaviour #324 wanted while restoring the
stamp↔refresh adjacency.

Extends the meta-stability e2e with an adjacency assertion (↻ within 24px
of the stamp's right edge) so the gap can't silently reopen.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit 67b8427 May 27, 2026
6 checks passed
@graydawnc graydawnc deleted the fix/security-meta-rescan-adjacency branch May 27, 2026 04:46
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.

1 participant