Skip to content

Improve image generation action footer and account menu contrast - #8411

Merged
Imagineer99 merged 5 commits into
unslothai:mainfrom
Imagineer99:feat/generate-button-section
Aug 11, 2026
Merged

Imagineer99 merged 5 commits into
unslothai:mainfrom
Imagineer99:feat/generate-button-section

Conversation

@Imagineer99

@Imagineer99 Imagineer99 commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • move the Images Generate/Stop action into a compact in-flow footer so it remains visible without covering the final settings control
  • crossfade the scrollable settings into the footer with a light, extended gradient instead of a hard boundary
  • add a subtle dark-mode-only border to the account settings popup so it remains distinguishable from the page background

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
  • Playwright visual checks in dark mode for the Generate footer and account-menu border
  • Manual testing and adjustment

@Imagineer99

Imagineer99 commented Aug 11, 2026 •

Copy link
Copy Markdown
Member Author

Playwright visual comparison

Generate footer

Both captures use the same 70% relative scroll position and the same 408×672 canvas. The Before shows the floating action overlapping the controls, while the After shows the dedicated in-flow footer with its 48px eased content fade and 2px background gap.

Before — floating action at 70% scroll After — final in-flow footer at 70% scroll
Before — floating Generate action at 70% scroll After — dedicated Generate footer at 70% scroll

Settings popup

The popup comparison is cropped to the affected area. The After adds a subtle 5% white border in dark mode so the surface remains distinct without changing its overall character.

Before — popup blends into background After — subtle 5% border
Before — dark-mode settings popup After — dark-mode settings popup with subtle border

@Imagineer99
Imagineer99 marked this pull request as ready for review August 11, 2026 10:53
@Imagineer99
Imagineer99 merged commit c4565cd into unslothai:main Aug 11, 2026
25 of 40 checks passed
@danielhanchen

Copy link
Copy Markdown
Member

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 changes

Before, 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:

Generate action overlapping the Resolution row

Left, 1024 and the truncated 24 sit either side of the button that is covering the row between them. So the problem is real, and worse than the description claims.

The account menu change holds up too, though not for the reason given. In dark mode that popup does get a shadow, but .dark [data-slot="dropdown-menu-content"] paints it in var(--background) -- the page's own colour -- so it separates the menu from content behind it and gives nothing against the plain page. The 5% border is the right fix:

Account menu border in dark mode

Verification

Two isolated installs, merge base 9e6dc61f6 vs head, driven over the cartesian product of [Chromium, Firefox, WebKit] x [dark, light] x [1440x900, 1440x620, 1000x900, 780x700]. 48 cells, no errors, no regressions, all three engines identical:

check before after
controls under the action (1440x900 / 1440x620) 1 / 3 0 / 0
action position absolute relative
rail padding-bottom 80px 24px
blocked hit tests at full scroll 0 0
account menu border, dark 0px 1px, visible
account menu border, light 0px 1px, transparent
/video rail and action unchanged unchanged

The hit test is elementFromPoint at the centre of every fully visible control at the bottom of the rail, so the fix is not trading an occluded control for an unclickable one. The light-mode row is worth calling out: border border-transparent applies in both themes, so light gains a 1px transparent border and the menu's content box shrinks by 2px. That reads deliberate (it avoids a light/dark layout shift) but it is not mentioned anywhere.

npm run typecheck clean, 1838/1838 frontend tests pass, and eslint and biome counts are identical before and after (29 and 6 on the touched files, all pre-existing).

Cross-browser

Nothing here is at risk. The masks ship both -webkit-mask-image and mask-image and both survive minification, which matters because unprefixed mask-image needs Chrome 120 while this project's floor is Tailwind v4's Chrome 111 / Safari 16.4 / Firefox 128. For the border, Tailwind emits border-color:#ffffff0d before the color-mix(in oklab, ...) override, so an engine that cannot parse the modern form still gets the right colour.

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 decide

The 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:

  • Audio measured 0 occluded controls on my box, so it is in there for consistency rather than a reproduced fault. It has to be included 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 is removed there. It existed to keep the hover fill opaque over the controls behind it; with nothing floating, and the first painted ancestor behind each footer measuring rgb(24, 24, 24) which is --background, the default hover:bg-primary/80 composites to exactly the colour that rule produced.

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: c4565cd58b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

danielhanchen added a commit that referenced this pull request Aug 11, 2026
…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]>
@danielhanchen

Copy link
Copy Markdown
Member

Heads up, this left one contract red on main.

tests/studio/test_desktop_reliability_frontend_contract.py::test_image_page_structural_panes_share_the_container_breakpoint pins the rail's utility string, and it still names the old padding:

assert "gap-4 px-10 pt-9 pb-20 @[50rem]:overflow-y-auto" in section
AssertionError

The rail moved to pb-6 here, so the assertion has been failing since the merge. Reproduced on a clean main worktree with nothing else applied: 1 failed, 34 passed.

Fix is up in #8446, which points the assertion at pb-6 and asserts panel-scroll-fade-action next to it, so a later change that drops the fade while keeping the small padding fails rather than passing quietly.

Worth knowing for next time: this is a Python contract under tests/studio/, not part of the frontend npm test suite, so a green npm run typecheck plus npm test does not cover it.

danielhanchen added a commit that referenced this pull request Aug 11, 2026
#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]>
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