Repository navigation
Move the Video, Train and Audio actions into the same in-flow footer - #8434
Merged
Merged
Conversation
#8411 moved the Images Create action out of an absolute overlay into an in-flow footer. Video's Generate, Train's Start training and the Audio page's Generate were left floating over their rails, so the four panels now disagree and three of them keep the behaviour #8411 fixed. Measured on the pre-8411 tree with a scroll sweep over each rail, counting interactive controls whose visible box intersects the action button: Images Create 1 control at 1440x900, 3 at 1440x620 (Width, Width presets and Height, at 30% scroll) Images Train 1 control at both sizes Video 1 control at both sizes (Seed at 1440x900, a resolution preset at 1440x620) Audio 0 at both sizes The 80px bottom padding on each rail was sized so the floating button clears the LAST control at full scroll, which is the one scroll position where the old layout looks correct; anything passing under it mid-scroll was covered. Audio showed no occlusion here, so it is included for consistency rather than a reproduced fault. It has to be in this commit regardless: it was the last user of btn-float-action, and dropping that rule while Audio still floated would have broken its hover. btn-float-action existed to keep the hover fill opaque over the controls behind it. Nothing floats over controls now, and the first painted ancestor behind each footer measures rgb(24, 24, 24), which is --background, so the default translucent hover:bg-primary/80 composites to exactly the colour color-mix(in srgb, primary 80%, background) gave. Verified across Chromium, Firefox and WebKit at 1440x900 and 1440x620: every panel reaches zero occluded controls, and elementFromPoint at the bottom of each rail reports nothing covering a control. Typecheck clean, 1838 frontend tests pass, eslint counts unchanged on the touched files. .panel-scroll-fade is left in place: it now has no consumers, but its doc comment in use-scroll-fades.ts is still accurate and pruning a shared utility belongs in its own change.
This was referenced Aug 11, 2026
danielhanchen
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Aug 11, 2026
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Follow-on to #8411, which moved the Images Create action out of an absolute overlay into an in-flow footer. Video's Generate, Train's Start training and the Audio page's Generate were left floating over their rails, so the four panels currently disagree and three of them keep the behaviour #8411 fixed.
Why
The 80px bottom padding on each rail was sized so the floating button clears the last control at full scroll. That is the one scroll position where the old layout looks correct; anything passing under the button mid-scroll is covered. Sweeping scroll positions and counting interactive controls whose visible box intersects the action button, on the pre-8411 tree:
Left is the old layout on Images Create:
1024and the truncated24sit either side of the button covering the row between them. Video and Train do the same thing today.What changes
Per panel, the same shape #8411 used on Create: the action leaves the absolute overlay for a
shrink-0footer, the rail drops topb-6and takespanel-scroll-fade-actionso its content dissolves into the footer, and the column stops being a positioning context (the action wrapper was its only absolutely positioned descendant in each case).Two notes:
btn-float-action, and dropping that rule while Audio still floated would have broken its hover.btn-float-actionis removed. It existed to keep the hover fill opaque over the controls behind it. Nothing floats over controls now, and the first painted ancestor behind each footer measuresrgb(24, 24, 24), which is--background, so the default translucenthover:bg-primary/80composites to exactly the colourcolor-mix(in srgb, primary 80%, background)produced.Validation
Two isolated installs driven over [Chromium, Firefox, WebKit] x [1440x900, 1440x620] x [Images Create, Images Train, Video, Audio], 48 cells, no errors:
positionabsoluterelativepadding-bottomThe hit test is
elementFromPointat the centre of every fully visible control at full scroll, so this does not trade an occluded control for an unclickable one.npm run typecheckclean, 1946/1946 frontend tests pass, and per-file eslint counts are unchanged (audio 14, video 29, train 7).Left alone
.panel-scroll-fadenow has no consumers, since all four rails use.panel-scroll-fade-action. Its doc comment inuse-scroll-fades.tsis still accurate, so pruning a shared utility belongs in its own change rather than here.