Repository navigation
fix studio responsiveness across desktop and mobile web - #8016
Conversation
Dialogs had no height limit, so any dialog taller than the window clipped its actions off screen with no way to scroll to them. DialogContent and AlertDialogContent now cap at the viewport and scroll; call sites that manage their own height still override both, since tailwind-merge treats a later overflow-* as conflicting with the base overflow-y-auto. On desktop the custom titlebar paints at z-70 over body-portaled dialogs, and the chrome CSS variables live inline on a wrapper div that portaled content never inherits from. A new WindowChromeTopInsetEffect publishes the titlebar height on <html> as --studio-window-chrome-top, and dialogs subtract it from their max height and centre below it. Web leaves the variable unset, so it falls back to 0px. The Images, Video and diffusion training panes docked a fixed 400-416px left column inside an overflow-hidden parent, which is wider than a phone and left the canvas unreachable. All three stack below 768px and keep their existing classes from md: up. Onboarding centred a 620-660px card inside an overflow-hidden container, so at the 900x600 minimum window the footer was cut off and unreachable; the container scrolls now and the card uses my-auto. Also in this change: 19 height rules move from vh to dvh so panels stop sitting under mobile browser chrome; dialogs go full screen below 640px instead of floating on a sliver of backdrop, with the close button fixed so it survives scrolling; confirms stay centred cards but take the available width; seven two-column grids stack on phones; the eight window resize strips get pointer-events-auto, because Radix sets pointer-events none on the body while a modal is open, which killed window resizing entirely; and top and bottom sheets gain a height cap.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6afdc84edd
ℹ️ 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".
| // managing its own height overrides both (twMerge drops the base classes). | ||
| "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/5 grid max-h-[calc(100dvh-var(--studio-window-chrome-top,0px)-2rem)] max-w-[calc(100%-2rem)] gap-6 overflow-y-auto rounded-4xl px-7 pt-8 pb-7 text-sm ring-1 duration-100 sm:max-w-md top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2", | ||
| // Phone-width dialogs fill the screen instead of floating on a sliver of backdrop. | ||
| "max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:w-dvw max-sm:max-h-none max-sm:max-w-none max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:ring-0", |
There was a problem hiding this comment.
Constrain absolute dialogs to their portal container
At widths below 640px, these viewport-sized rules also apply to DialogContent instances using position="absolute". Recipe Studio portals its config, import, processors, and run dialogs into an overflow-hidden editor container that is shorter than the viewport because the mobile route reserves space above it; h-dvh therefore extends past the container, while max-h-none overrides the callers' max-h-[650px], leaving lower form controls clipped and unreachable. Apply the full-viewport treatment only to fixed dialogs, or size absolute dialogs against their container.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in b86d812.
Good catch. The full-screen block was in the shared base string, so it landed on position="absolute" dialogs too. Both the phone full-screen rules and the titlebar offset now live in the fixed branch only, since both are viewport-sized. The four Recipe Studio dialogs keep their own max-h-[650px] and their container-relative sizing, and the close button keeps the absolute corner when the dialog is container-portaled.
There was a problem hiding this comment.
Confirmed, and already handled in b86d812: the whole max-sm block is gated behind position === "fixed", so a container-portaled dialog keeps plain absolute. Re-checked in the browser with config-dialog.tsx's real classes at 390x844 with --studio-window-chrome-top: 34px: position absolute, top 149px (container centre, no chrome term), 486x650 rather than 390 x 100dvh, and the close button stays absolute. Same at 1280x800.
The phone full-screen block sat in the shared base class string, so it also applied to DialogContent with position="absolute". Recipe Studio portals its config, import, processors and preview dialogs into a short overflow-hidden editor container; there max-sm:h-dvh ran past the container and max-sm:max-h-none dropped the callers' own max-h-[650px], clipping the lower form controls. The full-screen and titlebar-offset rules now live in the fixed branch only, and the close button keeps its absolute corner when the dialog is container-portaled.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b86d8126a2
ℹ️ 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".
|
|
||
| return ( | ||
| <div className="relative flex min-h-[calc(100dvh-var(--studio-titlebar-height,0px))] items-center justify-center overflow-hidden bg-gradient-to-br from-primary/5 via-background to-primary/3 p-4 sm:p-6 md:p-8"> | ||
| <div className="relative flex min-h-[calc(100dvh-var(--studio-titlebar-height,0px))] justify-center overflow-y-auto overflow-x-hidden bg-gradient-to-br from-primary/5 via-background to-primary/3 p-4 sm:p-6 md:p-8"> |
There was a problem hiding this comment.
Constrain the onboarding scroll container
On Windows/Linux Tauri at the supported 900×600 minimum, this element still expands to its contents because it has only min-h-*, so overflow-y-auto never creates an internal scrollport. The md:min-h-[620px] card plus padding exceeds the viewport, while the custom-chrome wrappers in provider.tsx are fixed to h-dvh with overflow-hidden; consequently the wizard footer remains clipped and Continue is unreachable. Give this container a constrained height (rather than only a minimum height) so the new overflow rule can actually scroll.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 88ca439.
Right, min-h-* alone meant the container grew to the card and overflow-y-auto never had anything to scroll. It now uses h-[calc(100dvh-var(--studio-titlebar-height,0px))] instead of min-h-. That variable is the correct one to subtract here: __root.tsx:282 redefines --studio-titlebar-height to --studio-hidden-route-top-inset for hidden-navbar routes and applies the same value as main's padding-top, so the container ends up exactly the area below the titlebar and the whole thing sums to dvh inside the h-dvh overflow-hidden chrome wrapper. Nothing changes when the card fits, since my-auto still centres it.
There was a problem hiding this comment.
Confirmed, fixed in 88ca439. With the old min-h the scroller grew to its content and never scrolled, and the overflow-hidden ancestor in __root.tsx:292 then made the bottom of the wizard permanently unreachable. Measured inside that real ancestor: at 390x600 the scroller was 1620px, scrollable: false, last row 980px off screen; at 1000x500 it was 902px, last row 346px off screen. With h-[calc(...)] the scroller matches the viewport, scrolls, and the last row is fully visible at both sizes.
The container only had min-height, so it grew to fit the card and overflow-y-auto never created a scrollport. At the 900x600 minimum window the md:min-h-[620px] card plus padding still overflowed the h-dvh overflow-hidden chrome wrapper, leaving Continue clipped. It now takes the height that main already pads for: __root.tsx redefines --studio-titlebar-height to the hidden-route inset, so 100dvh minus that variable is exactly the area below the titlebar.
…en dialog Three fixes on top of the responsiveness work, all verified in Chromium. max-sm:translate-x-0/translate-y-0 compiles to `translate: 0px`, which is not `none`, so the dialog stayed a containing block and the close button's max-sm:fixed behaved like absolute inside the new scrollport: it moved the full 200px of a 200px scroll at 320, 390 and 639 wide. max-sm:translate-none drops the containing block and the button now moves 0px, with the dialog box and horizontal overflow unchanged. The eight resize strips stopped propagation on mousedown, but Radix dismisses modals on pointerdown, which fires first. Grabbing a window edge with a dialog open started the resize and closed the dialog underneath it. Moving the handler to onPointerDown keeps the resize and leaves the dialog open. Below md the settings rail is no longer a scrollport, so pb-20 rendered as 80px of blank space above the divider; it is now pb-6 with md:pb-20. On the same containers an unset overflow-x computes to auto next to overflow-y-auto, so a wide row could pan the whole page sideways on touch; overflow-x-hidden pins it. md:overflow-hidden still wins from md up, so desktop is unchanged. typecheck, 472/472 tests, i18n parity and build all pass.
|
Went through this one carefully, including a pre/post build of Studio driven in a real browser. The core of the PR holds up well. Pushed three fixes to your branch in 03fbf0f rather than leaving them as review notes, since each one is a single class or handler change. What the measurements confirmedRunning the shared dialog primitives at 9 viewports across 7 dialog shapes, pre-PR vs this branch:
The chrome inset does exactly what you described: at 900x600 with On two real Studio installs at 390x844, Also worth recording, since it is the thing the whole diff rests on: What I changed1. The phone close button was not actually fixed.
One thing I did not change: from 2. Grabbing a resize strip dismissed the open dialog. Radix dismisses on
Not a regression against main, where the click fell through and dismissed with no resize at all, but the feature only half worked. All eight strips now use 3. Two mobile layout details.
Two things left for youThe branch stopped merging while I was reviewing.
Smaller notes, no action needed from me:
One correction to something I nearly raised: I thought the macOS branch should publish Nice work on this, the onboarding container fix in 88ca439 was the right shape too. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 03fbf0f606
ℹ️ 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".
| onScroll={onSettingsScroll} | ||
| className={cn( | ||
| "hover-scrollbar panel-scroll-fade flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto pb-20 pl-0.5 pr-8", | ||
| "hover-scrollbar panel-scroll-fade flex min-h-0 flex-1 flex-col gap-4 pb-6 pl-0.5 pr-8 md:pb-20 md:overflow-y-auto", |
There was a problem hiding this comment.
Preserve clearance for floating mobile actions
Below the md breakpoint, reducing this padding to pb-6 leaves only 24px beneath the final control, but the absolutely positioned Generate button still occupies roughly the bottom 72px of this panel (h-11 plus pb-7). It consequently overlays the Advanced section at the end of the settings form. The same responsive padding change is duplicated in diffusion-train-panel.tsx and video-page.tsx, where it similarly causes the Start training or Generate button to cover the last controls; retain enough bottom clearance in all three mobile rails.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct, and it was my regression from 03fbf0f. The floating action is absolute inset-x-0 bottom-0 ... pb-7 over an h-11 button, so it stands 72px tall, and pb-6 only clears 24px. Measured in Chromium, Firefox and WebKit at 390x844: the button overlapped the last control by 32px on the Images rail and 48px on the diffusion rail, and elementFromPoint at the control centre returned the button rather than the control. Reverted to pb-20 at every width in images-page.tsx, video-page.tsx and diffusion-train-panel.tsx, which is byte identical to before at md and up. Post fix the overlap is 0px in all three engines. Fixed in 6f87ddd.
There was a problem hiding this comment.
Addendum, now measured on the running Studio rather than a replica, and one correction to my numbers above. On the live /images and /video pages at 390x844 the last control in the rail is the Advanced disclosure row, and the floating button overlaps it by 48px with pb-6 and 0px with pb-20, identical in Chromium, Firefox and WebKit. Because that row is full width and the button is not, its centre stays hit-testable, so the accurate statement for these two pages is that the bottom 48px of the row is covered rather than that the row is unclickable; the elementFromPoint result I quoted was from the narrower diffusion-panel control. On head the live pages report padding-bottom: 80px against a 72px button stack, overlap 0, last control in view, in all three engines on both routes.
|
Ran the change through a cross-engine simulation before signing off, since the close-button fix rests on a detail the CSSWG still has open. Three trees served side by side (pre-PR The bug is bigger than the description saysI tested reachability the only way that counts: scroll every scroll container in the dialog to its end, then check the primary action is inside the viewport and is the topmost element at its own centre.
The failures were not marginal. Any dialog on the base primitive without its own The containing-block detail, per engineIndividual
Unanimous, so the bug and the fix both behave the same everywhere: close button moved 200px per 200px of scroll before, 0px after, in all three engines. Worth noting the browser floor does not move either, since Cross-engine results for the rest
One residual I left aloneDuring the open animation
Clear everywhere by 200ms and identical before my commit, so nothing regressed. I did not add Nothing regressed, and what is still failing was already failingZero regressions from my commit across all 2340 measurements. Everything still failing is identical on pre-PR main:
Two entries in my first pass were my own measurement artifacts rather than real problems, worth saying so they do not get chased: an CompatibilityThe whole PR is confined to
One thing to flag: GitHub still has this as conflicting with |
Resolves the three conflicts left by the train page setup rework (unslothai#7633), which extracted the sections this branch had edited in place. dataset-section.tsx and params-section.tsx: kept main's componentised versions whole. The grid this branch stacked in dataset-section now lives in dataset-advanced-settings.tsx, where main already ships it as grid-cols-1 sm:grid-cols-3, so that hunk was redundant. The LoRA variant grid moved to lora-params-section.tsx and still had a bare grid-cols-2, so the responsive class is transplanted there. history-card-grid.tsx: kept main's z-10 and resume/artifact-deletion work and re-applied pointer-coarse:opacity-100 on the delete button. Both resolved files are byte-identical to main apart from those two one-liners. typecheck, 678/678 tests, i18n parity and build pass on the merge.
The max-sm branch set top-0/h-dvh, dropping the --studio-window-chrome-top inset the same class string had just applied, so a full-screen dialog rendered under the z-70 titlebar. That breakpoint is reachable on desktop: MIN_WINDOW_WIDTH is 900 logical px while max-sm is a CSS-px query, and the two diverge under Windows text scaling, which navbar.tsx:41-42 already accounts for. It now starts at the inset and takes the remaining height. The variable is only ever set inside TauriWrapper, so on web it resolves to 0px and the geometry is byte-identical to before. Measured in Chromium, Firefox and WebKit at 320x568, 390x844 and 639x600: web unchanged (top 0, full height); with the inset at 34px the dialog moves to top 34 with height reduced by 34. Close button drift stays 0px and no viewport gains horizontal overflow. Primary action reachable in 144/144 probes.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 91cfd0bed3
ℹ️ 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".
| // iPad-portrait widths where a fixed width overflows. Height caps | ||
| // the same way so short viewports don't get a clipped dialog. | ||
| "settings-surface !max-w-[min(960px,calc(100vw-2rem))] h-[min(680px,calc(100dvh-2rem))] w-[min(960px,calc(100vw-2rem))] p-0 overflow-hidden", | ||
| "settings-surface !max-w-[min(960px,calc(100vw-2rem))] h-[min(820px,calc(100dvh-var(--studio-window-chrome-top,0px)-2rem))] w-[min(960px,calc(100vw-2rem))] p-0 overflow-hidden", |
There was a problem hiding this comment.
Preserve the chrome-subtracted Settings height
When a Windows/Linux Tauri window falls below the 640px CSS breakpoint, such as under high display scaling, the shared DialogContent starts the dialog below the 34px titlebar and sizes it to the remaining viewport. However, this call site's later max-sm:h-dvh wins tailwind-merge, so Settings still occupies the full viewport height from that offset and extends 34px below the window; because the surface is overflow-hidden, its bottom content can be clipped. Remove that override or subtract --studio-window-chrome-top there as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct. max-sm:h-dvh and the base max-sm:h-[calc(100dvh-var(--studio-window-chrome-top,0px))] are the same tailwind-merge group with the same modifier, so the later call site won; confirmed against the locked tailwind-merge, which returns only max-sm:h-dvh. Measured with the chrome var at 34px, identical in Chromium, Firefox and WebKit: dialog top 34, height 844, bottom 878 in an 844px viewport, so 34px hangs below the window and roughly 10px of real content is clipped behind overflow-hidden with the body scrolled to its end. Now uses the same chrome-subtracted calc: height 810, overhang 0, last row visible. On web the var resolves to 0px so it stays 100dvh. Fixed in 6f87ddd.
| "absolute top-5 right-5 z-10", | ||
| position === "fixed" && "max-sm:fixed", |
There was a problem hiding this comment.
Offset the fixed close button below desktop chrome
When a Tauri window falls below the sm breakpoint, the dialog now begins below the 34px desktop titlebar, but its close button switches to viewport-fixed positioning while retaining top-5. The button therefore starts at 20px and is partially covered by the higher-z-index titlebar or window controls, even though the dialog itself starts at 34px; include --studio-window-chrome-top in the fixed button's top offset.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct, and worse than described. At top-5 the fixed button sits at 20px against the 34px titlebar, so 14 of its 32px are underneath it, and its rect intersects the window's own close control by 18x12px. A real mouse click inside the dialog close button's rect was received by the window close control, which would quit Studio rather than close the dialog. Identical in Chromium, Firefox and WebKit. Now max-sm:top-[calc(1.25rem+var(--studio-window-chrome-top,0px))]: top 54px, 0px under the titlebar, no intersection with the window controls, and the centre hit test returns the dialog close again. Web (var 0px) stays at 20px and sm and up is untouched at absolute. Fixed in 6f87ddd.
|
Merged Merge (acc5afc)The train page setup rework (#7633) extracted the sections this branch had edited in place, which is what the three conflicts were. Resolved by keeping main whole in both refactored files and transplanting only the intent:
Both resolved files are byte-identical to main apart from those two one-liners, so none of main's work is reverted. Phone-width dialogs and the titlebar (91cfd0b)The It now starts at the inset and takes the remaining height. The variable is only ever set inside Measured in Chromium, Firefox and WebKit at 320x568, 390x844 and 639x600:
Close button drift stays 0px, no viewport gains horizontal overflow, and the primary action is reachable in 144/144 probes on the merged tree. CIFrontend build and bundle sanity passes, Source lint passes, Tauri Linux debug build passes, pre-commit.ci passes. 27 green. One job fails: Checked against the newest main#8025 landed after my merge and touches Still open, deliberately not changed hereFixed sheets still use Also unchanged, all pre-existing and noted earlier: the bare |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
…s landed unslothai#7957 merged first and gave the response details and document preview sheets their own compensation for the same overlap: a marginTop plus height: calc(100% - var(--studio-custom-titlebar-height)). With SheetViewportInsetProvider both apply, pushing those two panels to 68px and leaving them 34px past the viewport bottom. Remove the per-sheet compensation so the context is the only offset for sheets, and extend the contract test to pin that. DesktopChromeVarsEffect stays: unslothai#8016 gave it a second job, mirroring --studio-window-chrome-top for the dialogs that portal to body.
…s landed unslothai#7957 merged first and gave the response details and document preview sheets their own compensation for the same overlap: a marginTop plus height: calc(100% - var(--studio-custom-titlebar-height)). With SheetViewportInsetProvider both apply, pushing those two panels to 68px and leaving them 34px past the viewport bottom. Remove the per-sheet compensation so the context is the only offset for sheets, and extend the contract test to pin that. DesktopChromeVarsEffect stays: unslothai#8016 gave it a second job, mirroring --studio-window-chrome-top for the dialogs that portal to body.
* Studio: Keep sheets below the custom titlebar * Studio: drop the per-sheet titlebar offset now that #7957 has landed #7957 merged first and gave the response details and document preview sheets their own compensation for the same overlap: a marginTop plus height: calc(100% - var(--studio-custom-titlebar-height)). With SheetViewportInsetProvider both apply, pushing those two panels to 68px and leaving them 34px past the viewport bottom. Remove the per-sheet compensation so the context is the only offset for sheets, and extend the contract test to pin that. DesktopChromeVarsEffect stays: #8016 gave it a second job, mirroring --studio-window-chrome-top for the dialogs that portal to body. * Tidy comment wording for PR #7954 * Inset sheets with the mirrored titlebar variable, not a React context * Tighten the sheet inset comments for PR #7954 --------- Co-authored-by: Daniel Han <[email protected]>
…ss (#8215) * remove the unused images train dialog and fix media page responsiveness diffusion-train-dialog.tsx has been dead since #6822 replaced it with train/diffusion-train-panel.tsx. Nothing imports it, DiffusionTrainDialog is its only export, and #8016 spent responsiveness edits on it while it was already unreachable. DatasetLabelingGrid capped its height at 420px with default auto rows, so once the tiles passed the cap Chrome divided the definite height between them instead of scrolling. Each tile is overflow-hidden, so its automatic minimum size is zero and the aspect-square thumbnail collapsed: measured tile 26px, thumbnail 170x0. auto-rows-min restores tile 404px, thumbnail 170x170 and a scrolling grid. The Images header positioned the Create | Train switch absolutely over a justify-between row, so at a 390px header it painted 124px over the model selector and 44px over the Video link. It is now a three column grid with equal side tracks, and the pill padding keys off the header width rather than the viewport, since the header is the viewport minus a resizable sidebar. The train run pane sized its stat grids and charts on viewport breakpoints while its own width is whatever is left beside the 416px form column, which put four stat cells needing 396px into a 266px pane. The pane is a container now and both break on its width. The Video header's left group had no min-w-0, so a long resident model name pushed the Images link 51px off a 390px viewport. test_desktop_reliability_frontend_contract.py matched the header band on an order coupled class literal. The marker is the band size now and the group pattern allows utilities between the tokens; every assertion is intact and was mutation tested against four violations it must catch. * hide the video status chips when the header cannot hold them md: is a viewport query, but the header is the viewport minus a sidebar that is resizable to 480px. At a 420px header the chips kept their intrinsic width and squeezed the model name to zero. They now key off the header's own width, so the name stays 230px readable below 720px and the chips return above it. * let the media page link truncate instead of overlapping the mode switch The link button was shrink-0, so below a roughly 370px header its equal side track underflowed the 90px control and the link overflowed left across the Train tab. It now shrinks and truncates its label the way the model selector already does, keeping the icon, the arrow and the tooltip. Measured at header widths 300 through 1000: link-left minus pill-right is -8 everywhere, previously +25 at 300. * Fix the Images header pill sitting 8px right of the page centre for PR #8215 --------- Co-authored-by: danielhanchen <[email protected]>
Studio had several layout failures where content became unreachable rather than just cramped. This fixes the blocking ones on both the desktop app and mobile web, and cleans up the obvious cosmetic cases alongside them.
Dialogs had no height limit
DialogContentandAlertDialogContentset nomax-heightand no scroll. 56 of 69 modal surfaces inherited that, so any dialog taller than the window clipped its actions off screen with no way to reach them. It hits the desktop app at its 900x600 minimum window as much as it hits phones.Both primitives now cap at the viewport and scroll. Call sites that manage their own height still win:
tailwind-mergetreats a lateroverflow-*as conflicting with the baseoverflow-y-auto, and a latermax-h-*replaces the base cap. The attachment lightbox opts out explicitly since it is deliberately full-bleed.Desktop dialogs sat under the titlebar
The custom titlebar paints at
z-70over body-portaled dialogs. The chrome CSS variables inprovider.tsxare inline on a wrapper div, which portaled content never inherits from, so no dialog could account for the 34px strip. At a 600px-tall window, Settings rendered 568px tall centred aty=16, putting its top 18px behind the titlebar.WindowChromeTopInsetEffectpublishes the titlebar height on<html>as--studio-window-chrome-top. Dialogs subtract it from their max height and centre atcalc(50% + chrome/2). Web never sets the variable, so it falls back to0pxand nothing changes there. Container-portaled dialogs (position="absolute") keep their existing centring.Fixed left columns wider than a phone
Images (
408px), Video (400px) and the diffusion training panel (416px) each dock a fixed-width settings column inside anoverflow-hiddenparent. Below roughly 430px the canvas is off screen and unreachable. None of the three had a single breakpoint.All three stack below
768pxand keep their current classes frommd:up, so desktop rendering is unchanged.Onboarding clipped at the minimum window size
wizard-layoutcentres amin-h-[620px]card (lg:h-[660px]) inside anoverflow-hiddencontainer. At 900x600 the available height is 502px after the titlebar and padding, so the footer was cut off with no way to scroll to Continue. The container scrolls now and the card usesmy-auto, which centres it when it fits and lets it scroll from the top when it does not.Window resize died whenever a modal opened
Radix sets
document.body.style.pointerEvents = "none"while a modal is open. The eight resize strips inwindow-titlebar.tsxinherit that, so every window edge went dead as soon as any dialog appeared.z-70was never the problem. They now setpointer-events-auto.Smaller fixes
vhtodvh, so panels stop sitting under mobile browser chrome640pxrather than floating on a sliver of backdrop; the close button switches tofixedso it stays visible while the dialog scrollscalc(100% - 2rem)on phones instead of a fixed20rem640px(sm:grid-cols-2)85dvhcap and scroll; nothing mounts those sides todayManual testing
UI-only change, so this was verified by hand rather than with automated tests.
Desktop app:
Web:
tscis clean and the 472 frontend tests pass, though none of them cover layout.Out of scope
Left deliberately, none of it blocking: recipe-studio (a node graph, not cheaply adaptable to phones), the roughly ten files that hardcode
48pxand34pxfallbacks for the titlebar inset variables, and the Windows text-scaling compensation inprovider.tsxthat only runs at first launch and not on resize.