Skip to content

fix(renderer): fix session row actions masking and sidebar grid layout - #576

Merged
likun666661 merged 1 commit into
apache:mainfrom
GabrielDrapor:fix/session-row-actions-text-overlap
Jul 7, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
GabrielDrapor:fix/session-row-actions-text-overlap

Conversation

@GabrielDrapor

@GabrielDrapor GabrielDrapor commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor
image

↓

image

Summary

Two independent sidebar CSS bugs fixed in one file (apps/desktop/src/renderer/styles/sidebar.css):

1. Session row action buttons overlapping title text

The hover-revealed action buttons (pin/rename/archive/delete) rendered visibly on top of fully-legible title text instead of hiding it. The actions cluster's background gradient was designed to mask the covered text, but its "opaque" stop color (--state-hover-bg / --state-selected-bg) was a 4–6.5% alpha tint of --foreground — the same color as the text itself at near-zero opacity. A translucent mask can't occlude full-opacity text.

Fix: replace the translucent token with color-mix(in oklch, var(--foreground) 4%, var(--background)), which flattens the tint into a genuinely opaque color. A 16px leading fade softens the title-to-actions edge without leaking text (the old fade used the translucent token, so text was fully readable under the icons). The [data-active] variant uses the same approach at 6.5%.

This bug predates the recent session-list extraction (~6 weeks old, from the Phase 3 sidebar row redesign); the extraction carried it forward unchanged.

2. "按状态/按项目" view-mode toggle stretched to full sidebar height

PR #510 added .maka-view-mode-toggle as a 5th direct child of the .maka-session-panel grid, but left grid-template-rows at 4 tracks (auto auto minmax(0, 1fr) auto). The toggle consumed the minmax(0, 1fr) track meant for the scrollable session list, ballooning to ~270px tall while the session list was squeezed into a fixed auto row.

Fix: add a 5th auto track so the grid matches the actual child count: auto auto auto minmax(0, 1fr) auto (header / nav / toggle / session-list / footer).

Verification

  • apps/desktop test suite: 2087/2087 pass (clean rebuild).
  • Verified via CDP Page.captureScreenshot at 5x zoom: hovered session row shows title fading smoothly into action icons with zero text bleed-through; "按状态/按项目" toggle renders at normal button height (27.5px each, down from 268px).

Co-Authored-By: Claude [email protected]

@GabrielDrapor
GabrielDrapor marked this pull request as draft July 6, 2026 14:41
@GabrielDrapor
GabrielDrapor force-pushed the fix/session-row-actions-text-overlap branch from 3adec92 to 481bcd7 Compare July 6, 2026 15:44
@GabrielDrapor GabrielDrapor changed the title fix(renderer): reserve space for session row actions instead of masking title text fix(renderer): fix session row actions masking and sidebar grid layout Jul 6, 2026
Two independent sidebar bugs, one CSS file:

1. Session row action buttons (pin/rename/archive/delete) rendered on
   top of fully-legible title text: the actions cluster's background
   gradient used `var(--state-hover-bg)` as its "opaque" stop, but that
   token is a 4% alpha tint of `--foreground` — same color as the text,
   nearly transparent. Replaced with `color-mix(in oklch, var(--foreground)
   4%, var(--background))` which flattens the tint into a genuinely
   opaque color. A 16px leading fade softens the title-to-actions
   transition without leaking text through (the old version's fade used
   the translucent token, so text was fully readable under the icons).

2. "按状态/按项目" view-mode toggle stretched to ~270px tall: PR apache#510
   added the toggle as a 5th grid child of `.maka-session-panel` but
   left `grid-template-rows` at 4 tracks, so the toggle consumed the
   `minmax(0, 1fr)` track meant for the session list. Added a 5th
   `auto` track for the toggle.

Co-Authored-By: Claude <[email protected]>
@GabrielDrapor
GabrielDrapor force-pushed the fix/session-row-actions-text-overlap branch from 481bcd7 to bd80e81 Compare July 6, 2026 15:48
@GabrielDrapor
GabrielDrapor marked this pull request as ready for review July 6, 2026 15:49
@likun666661
likun666661 merged commit 668d9dd into apache:main Jul 7, 2026
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