Skip to content

fix(transcript): center running marker - #1811

Merged
Tioit-Wang merged 2 commits into
mainfrom
fix/transcript-running-marker
Oct 22, 2026
Merged

Tioit-Wang merged 2 commits into
mainfrom
fix/transcript-running-marker

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Summary

  • Render the live transcript marker as a real flex sibling of the label instead of generated ::after content.
  • Remove the generated marker rules and target the new marker in reduced-motion handling.
  • Update the active-turn CSS contract test to assert the sibling marker.

Why

A selector collision with .text-shimmer made .tool-activity-label.running a grid, so the generated marker was auto-placed on a second row. Even after separating the selectors, the inline pseudo-element stayed about 2.25px below the row centre and lived inside the label's ellipsis clip box. The marker now participates in the header's existing align-items: center and cannot be clipped by label truncation.

Validation

  • pnpm --filter @pi-desktop/desktop typecheck
  • pnpm lint
  • pnpm --filter @pi-desktop/desktop build
  • node --test test/transcript-display-modes-ui.test.mjs test/transcript-display-mode.test.mjs test/turn-process.test.mjs test/session-reference-ui.test.mjs test/active-turn-surface.test.mjs — 41/41 passed
  • pnpm check:pr-base

Not run locally: verify:ui:* and full Electron E2E. The change is CSS/DOM-only; layout centring was measured in a headless CSS fixture, and CI covers the Electron suites.

v_wyxgwang added 2 commits October 22, 2026 10:55
The shimmer styles were inserted after the first half of the running-label selector, so the active label inherited inline-grid and the pulse marker became an auto-placed grid item. Separate the marker and shimmer selectors again so the marker stays in the label's inline flow and does not disturb truncation.
The live dot was generated content inside the running label. A selector collision with the shimmer rule turned that label into a grid and pushed the dot onto a second row; even with the selectors separated, the inline pseudo-element sat below the row centre and could be clipped by the label's ellipsis box.

Render the marker as a real flex sibling so the header's existing align-items centres it, and keep the label's text truncation untouched.
@Tioit-Wang
Tioit-Wang merged commit 7bfe753 into main Oct 22, 2026
12 of 14 checks passed
@vastsa
vastsa deleted the fix/transcript-running-marker branch November 6, 2026 04:24

This branch was previously deployed

1 inactive deployment
Preview — 09534c5c Deployed Oct 22, 2026 by vercel[bot]
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