Skip to content

fix(rail): keep the inline rename editor unclamped in the detailed tab rail - #534

Open
opticon454 wants to merge 1 commit into
Ark0N:masterfrom
opticon454:fix/rail-rename-unclamp
Open

opticon454 wants to merge 1 commit into
Ark0N:masterfrom
opticon454:fix/rail-rename-unclamp

Conversation

@opticon454

Copy link
Copy Markdown
Contributor

What

Renaming a session in the detailed vertical tab rail (the default rail layout) left the 3-line name clamp on the inline editor, because the card-row rule out-ranked the shared "unclamp while renaming" override.

Cause

.tab-name.tab-name-renaming sets -webkit-line-clamp: unset, but the detailed-rail rule html[data-tab-orientation='vertical'][data-tab-rail-detail='rich']:not(.tab-rail-compact) .tab-rail .session-tab .tab-name (which sets line-clamp: 3) carries four more selectors of specificity, so the override never won in the default layout. The existing test, Vertical rail paints typing in an unclamped editor…, caught it, but it lives in the browser suite that the per-push CI gate does not run, so it went unnoticed (I measured it failing on a clean 1.33.3 checkout; the CSS and the test are unchanged in 1.34.0).

Fix

Restate the override at the same weight, after the rule it beats. One rule in styles.css.

The test also encoded the wrong expectation for the default layout (it asserted a 2-line clamp after cancelling the rename, but the detailed rail intentionally clamps to 3, as its own comment says). It now runs for both layouts: simple → 2 lines, detailed → 3 lines; each must be unclamped while renaming and restore its own clamp on cancel.

Tests

  • test/inline-rename.test.ts (real Chromium): now parameterised over both rail layouts. 15 pass (14 existing + the added layout); the detailed-layout case failed before the CSS change.
  • Full CI gate: typecheck, lint, format, public assets, catalogue and all unit/integration tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JrzFKEdBLwVfu6ev2ZscJS

The card-row rule (line-clamp: 3) out-ranked the shared unclamp-while-renaming
override. Restate it at the same weight; the test now covers both rail layouts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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