Skip to content

fix(example): prevent layout shift from the loading spinner - #586

Merged
pubkey merged 1 commit into
masterfrom
ccr-c6b200dd-g3zv88
Oct 23, 2026
Merged

pubkey merged 1 commit into
masterfrom
ccr-c6b200dd-g3zv88

Conversation

@pubkey

@pubkey pubkey commented Oct 23, 2026

Copy link
Copy Markdown
Owner

On the example page, the loading icon shown next to "Run without EventReduce.." / "Run with EventReduce.." is taller than the text line. The State row grew from 15px to 25px whenever a run started, which pushed everything below it down by 10px.

The State row now has a fixed 20px height that fits the icon. The value is a flex row with the icon vertically centered, so its height no longer depends on whether the spinner is shown.

I checked this in Chromium by measuring the row and the Actions panel in the idle and running states:

idle running
before 15px 25px
after 20px 20px

Generated by Claude Code

The loading icon was taller than the text line, so the State row grew
when a run started and pushed the content below it down. Give the row
a fixed height that already fits the icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6kYMtaicjNaZfA6SntAq4
@pubkey
pubkey merged commit d461359 into master Oct 23, 2026
1 check passed
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