Skip to content

fix(web): pad session rows so the hover highlight has room - #38

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/13-when-hovering-an-agent-in-the-list-on-ap
Oct 18, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/13-when-hovering-an-agent-in-the-list-on-ap

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Session rows on the home page ("Working now", "Recently") and on a project's page had no horizontal padding. The hover highlight ended exactly where the content did. On the home page, the arrow also slides 2px to the right on hover, so it ended past the highlight's edge. On a project's page it was flush.

The rows now have 12px of padding on both sides (p-3 instead of py-3), so the arrow ends 10px inside the hovered row on the home page (12px on a project's page) and the status dot starts 12px in. The padding replaces the dot's 4px margin; with 12px of padding, the dot's pulse stays inside the row without it. The separators and the highlight still span the list's full width, so the list's edges stay in line with the rest of the page. Only the row content moves 12px in.

Verification

  • cargo xtask dev with four fake-claude sessions (three active, one stopped). In Chromium I hovered the first row on the home page and on the Playground project page, in both themes, at 1280px and at a 390px phone width. I measured the hovered row with getBoundingClientRect:

    Page Arrow to the row's right edge Row's left edge to its first item
    Home, before −2px (past the edge) 4px
    Home, after 10px 12px
    Project, before 0px 0px
    Project, after 12px 12px
  • Long titles still truncate at phone width, and the keyboard focus ring is unchanged.

  • cargo xtask check passes.

In the light theme the hover fill is almost invisible (#fbfbfb on #fafafa), on these rows and elsewhere, so the padding mostly shows in the dark theme. That's a separate problem, recorded in #37.

Session: https://app.fctl.sh/s/ses_01M56BXM0HKXAFZDEMXPN188ZP

Session rows on the home page and a project's page had no horizontal
padding, so the hover highlight ended exactly at the arrow (on the home
page the arrow's hover nudge pushed it 2px past the edge). The rows get
12px of padding on both sides, which also replaces the status dot's
4px margin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kalaspuff
kalaspuff merged commit 0c51952 into main Oct 18, 2026
4 checks passed
@kalaspuff
kalaspuff deleted the fctl/13-when-hovering-an-agent-in-the-list-on-ap branch October 18, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant