Repository navigation
Keep the Live switch in one place, on and off - #32
Merged
Merged
Conversation
Off, the switch stood at the end of the filter row; on, at the start of the live controls, so pressing it moved it out from under the pointer. It is now the first thing in both toolbars, one width for "Live off" and "Live on", and the live toolbar is as tall as the paged one, so neither the switch nor the table below moves when it is pressed. The dot is drawn as an 8px circle instead of a "●" glyph: the glyph took its size and height from the font and came out larger than the label and off its centre line. Off it is faint, on it is the live colour, and the button carries aria-pressed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
The Live switch on Transactions (#31) moved when it was pressed. Off, it stood at the end of the filter row, after Apply and Clear; on, it was the first of the live controls. Turning Live on put the button somewhere else, and turning it off again meant looking for it.
What
Live offandLive onshare one width (84px), and the live toolbar is held to the paged toolbar's height (52px, the height its text fields give it). The switch and the top of the table no longer shift between the two states.●glyph took its size and baseline from the font, so it came out larger than the label and off its centre line, and the space after it was dropped inside the flex button. It is now an 8px circle on the button's centre with a 6px gap: faint when off, the live colour when on.aria-pressed, so the state is said as well as drawn.The label text
Live onis kept, whichscreens.test.mjsasserts.Checked locally
pnpm lint,pnpm typecheck,pnpm test(core 138 · backend 143 · frontend 68),pnpm build— all green.🤖 Generated with Claude Code