Skip to content

Move the Video, Train and Audio actions into the same in-flow footer - #8434

Merged
danielhanchen merged 1 commit into
mainfrom
studio/inflow-action-footers
Aug 11, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio/inflow-action-footers

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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:

surface 1440x900 1440x620
Images Create (fixed by #8411) 1 3 (Width, Width presets, Height, at 30% scroll)
Images Train 1 1
Video 1 (Seed) 1 (a resolution preset)
Audio 0 0

The Generate action covering the Resolution row

Left is the old layout on Images Create: 1024 and the truncated 24 sit 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-0 footer, the rail drops to pb-6 and takes panel-scroll-fade-action so 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:

  • Audio measured zero occluded controls 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 is 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 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) produced.

Validation

Two isolated installs driven over [Chromium, Firefox, WebKit] x [1440x900, 1440x620] x [Images Create, Images Train, Video, Audio], 48 cells, no errors:

check before after
controls under the action 1-3 per panel 0 everywhere
action position absolute relative
rail padding-bottom 80px 24px
blocked hit tests at the bottom of the rail 0 0

The hit test is elementFromPoint at the centre of every fully visible control at full scroll, so this does not trade an occluded control for an unclickable one.

npm run typecheck clean, 1946/1946 frontend tests pass, and per-file eslint counts are unchanged (audio 14, video 29, train 7).

Left alone

.panel-scroll-fade now has no consumers, since all four rails use .panel-scroll-fade-action. Its doc comment in use-scroll-fades.ts is still accurate, so pruning a shared utility belongs in its own change rather than here.

#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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 38431141d9

ℹ️ 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
danielhanchen merged commit 15361fa into main Aug 11, 2026
5 of 44 checks passed
@danielhanchen
danielhanchen deleted the studio/inflow-action-footers branch August 11, 2026 13:24
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