Repository navigation
Improve image generation action footer and account menu contrast - #8411
Conversation
|
Went through this one carefully. It is a real fix, it does what it says, and I could not find anything it breaks. Details below, plus one follow-on branch. What changesBefore, the Generate action is an overlay absolutely positioned on top of the settings rail, and the rail carries 80px of bottom padding so the button clears the last control at full scroll. Mid-scroll it clears nothing. After, the action is an in-flow footer below the scroll area, padding drops to 24px, and the content dissolves into it over an eased 48px. That distinction matters, because the screenshot in the description is taken at the one scroll position where the old layout looks fine. Swept across scroll positions at 1440x620, the old layout puts the Width input, the Width presets button and the Height input underneath the button at 30% scroll: Left, The account menu change holds up too, though not for the reason given. In dark mode that popup does get a shadow, but VerificationTwo isolated installs, merge base
The hit test is
Cross-browserNothing here is at risk. The masks ship both There is no OS or GPU dimension to this: the diff is three frontend files, no Python, no backend, no API or schema change, so existing installs keep their bundle and have nothing to migrate. One thing to decideThe identical floating pattern still exists on the Video page, the Images Train panel, and the Audio page that just landed on main. Measured on this branch's head: Video and Train still put a control under their action at both sizes. So merging this as-is leaves four panels with two different behaviours. I pushed the same change for those three to Imagineer99#57, targeted at this branch so it can land as part of this PR. Two notes on it:
Same 48-cell sweep against that branch: every panel at zero, nothing blocked, typecheck and 1838 tests clean. Take it or leave it, but the four panels should agree either way before this merges. |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
…8434) #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. Co-authored-by: danielhanchen <[email protected]>
|
Heads up, this left one contract red on main.
The rail moved to Fix is up in #8446, which points the assertion at Worth knowing for next time: this is a Python contract under |
#8411 moved the Create action into an in-flow footer and dropped the rail from pb-20 to pb-6, but left this contract asserting the old utility string, so tests/studio/test_desktop_reliability_frontend_contract.py has been red on main since it merged: assert "gap-4 px-10 pt-9 pb-20 @[50rem]:overflow-y-auto" in section AssertionError Reproduced on a clean main worktree: 1 failed, 34 passed. The assertion now names pb-6 and, alongside it, panel-scroll-fade-action. The two belong together: the small padding is only correct while the 48px mask is there to dissolve the last control into the footer, so a change that drops the fade but keeps pb-6 should fail here. Checked the assertion still bites by reverting the page back to pb-20 with the new contract in place: the test fails, so this is not a vacuous match. Co-authored-by: danielhanchen <[email protected]>






Summary
Why
The Generate action previously floated over the settings rail and could obscure controls. Moving it into its own footer preserves access while keeping the control compact. The account menu also blended into the surrounding dark surface because it had no border, so a restrained 5% white border now provides separation without making the menu look outlined.
Validation
npm run typecheck