Repository navigation
fix(renderer): fix session row actions masking and sidebar grid layout - #576
Merged
likun666661 merged 1 commit intoJul 7, 2026
Merged
Conversation
GabrielDrapor
marked this pull request as draft
July 6, 2026 14:41
GabrielDrapor
force-pushed
the
fix/session-row-actions-text-overlap
branch
from
July 6, 2026 15:44
3adec92 to
481bcd7
Compare
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
force-pushed
the
fix/session-row-actions-text-overlap
branch
from
July 6, 2026 15:48
481bcd7 to
bd80e81
Compare
GabrielDrapor
marked this pull request as ready for review
July 6, 2026 15:49
likun666661
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
↓
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-toggleas a 5th direct child of the.maka-session-panelgrid, but leftgrid-template-rowsat 4 tracks (auto auto minmax(0, 1fr) auto). The toggle consumed theminmax(0, 1fr)track meant for the scrollable session list, ballooning to ~270px tall while the session list was squeezed into a fixedautorow.Fix: add a 5th
autotrack so the grid matches the actual child count:auto auto auto minmax(0, 1fr) auto(header / nav / toggle / session-list / footer).Verification
apps/desktoptest suite: 2087/2087 pass (clean rebuild).Page.captureScreenshotat 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]