Skip to content

fix(autofix): Prevent loading spinner clip in artifact loading card#115988

Open
priscilawebdev wants to merge 1 commit into
masterfrom
priscila/fix/autofix-loading-spinner-cut-off
Open

fix(autofix): Prevent loading spinner clip in artifact loading card#115988
priscilawebdev wants to merge 1 commit into
masterfrom
priscila/fix/autofix-loading-spinner-cut-off

Conversation

@priscilawebdev
Copy link
Copy Markdown
Member

@priscilawebdev priscilawebdev commented May 21, 2026

Summary

The loading row of the autofix Root Cause / Solution / Code Changes cards rendered the spinner partially cut off at the bottom while streaming was in progress.

Root cause: the inner scroll container is constrained vertically by a parent flex ancestor to the spinner's intrinsic height (16px), and overflow-y: auto removes the flex min-height: auto protection that would normally keep the container at content height. The adjacent <Text> defaults to line-height: 19.6px, so the row's content was 3px taller than the container — useAutoScroll then scrolled by exactly that 3px and clipped the top of the spinner.

Fix: set density="compressed" on the <Text> (line-height: 1), so the text's content box matches its font-size and the row fits within the container — no overflow scroll triggered.

Before

Screen.Recording.2026-05-21.at.14.20.23.mov

After

Screen.Recording.2026-05-21.at.14.31.23.mov

The loading row of the autofix Root Cause / Solution / Code Changes
cards rendered the spinner partially cut off at the bottom while
streaming was in progress.

Root cause: the inner scroll container is constrained vertically by a
parent flex ancestor to the spinner's intrinsic height (16px), and
`overflow-y: auto` removes the flex `min-height: auto` protection
that would normally keep the container at content height. The
adjacent `<Text>` defaults to `line-height: 19.6px`, so the row's
content was 3px taller than the container — `useAutoScroll` then
scrolled by exactly that 3px and clipped the top of the spinner.

Setting `density="compressed"` on the `<Text>` (line-height 1) makes
the text's content box match its font-size, so the row fits within
the container and no overflow scroll is triggered.
@priscilawebdev priscilawebdev requested a review from a team as a code owner May 21, 2026 12:05
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.60%

@priscilawebdev priscilawebdev marked this pull request as draft May 21, 2026 12:28
@priscilawebdev priscilawebdev marked this pull request as ready for review May 21, 2026 12:32
@priscilawebdev priscilawebdev requested a review from a team May 22, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants