PR #10181 review: Pro Features dialog on narrow screens
Summary
The shared ProFeaturesDialog (web /integrations paywall and desktop paywall) used a fixed 744px width, so on phones and on a desktop window near its 540px minimum it ran off both edges and cut off the Cancel and Get Paradev Pro buttons. Below md (768px) the PR turns the sidebar into a horizontal tab row, stacks the preview under it, caps the dialog at the viewport minus 1rem per side, and pins the footer while the body scrolls. At md+ the layout stays the same, with the preview column now flexing instead of a fixed 495px. It also adds a Storybook story and a process.env define so the story renders.
Verdict
Minor issues The fix works: measured at 320–768px the dialog and both footer buttons stay on screen and the wide layout is unchanged. Two small polish items remain (a visible horizontal scrollbar under the tabs on non-overlay-scrollbar browsers, and the description falling below the fold on a typical phone), plus one story nit.
Findings
packages/ui/src/components/ProFeaturesDialog/components/FeatureSidebar/FeatureSidebar.tsx:41 — tab row shows a full classic scrollbar on desktop browsers.
The tab row is overflow-x-auto with no scrollbar styling. On a non-touch Chromium (Windows/Linux web, or any browser with classic scrollbars) between 540 and 767px wide, a 15px light scrollbar track with arrows appears between the tabs and the preview (measured offsetHeight − clientHeight = 15 at 767px; see the 767px screenshot). The desktop app hides most of this because apps/desktop/src/renderer/globals.css:277 styles all scrollbars thin; the web app has no such rule, and the hide-scrollbar utility exists only in the desktop CSS, so it is not usable from packages/ui.
Fix: add [scrollbar-width:none] [&::-webkit-scrollbar]:hidden (or a thin styled scrollbar) to the tab row, optionally with an edge fade mask so the overflow still reads as scrollable.
packages/ui/src/components/ProFeaturesDialog/components/FeaturePreview/FeaturePreview.tsx:35 — on a 375×667 phone the feature description is below the fold.
The preview keeps its 346px height at every width. Stacked under the title and tab row, it leaves the feature title visible but the end of the description cut by the pinned footer at 375×667, and at 375×480 the user must scroll the body to read anything but the demo. Scrolling works correctly (footer stays pinned), so this is a layout tradeoff, not a breakage.
Fix (suggestion): use a shorter preview below md, e.g. h-[260px] md:h-[346px], after checking each demo card (Automations, Tasks are the tallest) still fits.
packages/ui/src/components/ProFeaturesDialog/ProFeaturesDialog.stories.tsx:36-39 — MobileApp story models a state production does not produce.
highlightedFeatureId: PRO_FEATURES[0]?.id ?? "mobile-app" evaluates to "remote-access", which is already the meta default, so the story opens with Mobile App selected but its tab last and off-screen at 375px (measured selectedTabVisible: false). Both callers (Paywall.tsx:128, ProFeaturesPaywall.tsx:58) always open with selected == highlighted, which sorts first. Nothing scrolls the selected tab into view on open, so if a future caller diverges, the selected tab can be hidden.
Fix: set highlightedFeatureId: "mobile-app" in the story (drop the PRO_FEATURES import), or scroll the selected tab into view in an effect on selectedFeatureId instead of only in onClick.
Checked and fine: "process.env": {} in .storybook/main.ts:35 (Storybook 10 builder-vite only defines process.env.NODE_ENV; the story renders and @superset/shared/constants falls back to default URLs); scrollIntoView({block:"nearest"}) does not move the page at md+; tailwind-merge resolves flex over the dialog's base grid. No new strings, so no i18n change. Pre-existing, not introduced: FeatureSidebar.tsx holds two components (FeatureButton), against AGENTS.md rule 3.
Evidence
Surface: Storybook (packages/ui, bun run storybook) driven over CDP in headless Chrome 158 with device-metrics emulation (DPR 2; touch/overlay scrollbars below 600px, classic scrollbars at 600px+). Each screenshot is paired with DOM measurements in measurements.json.
Before vs after at 375px (the bug)

1a097655): dialog spans x = −184…560 on a 375px viewport; Cancel sits at x = −163, off-screen.
Narrow widths (after)






Breakpoint edge


Wide layout unchanged (1280px)




right-12 position at md+.Measurements (after, Remote Access story)
| Viewport | Dialog x | Dialog w×h | Buttons inside | Doc overflow-x | Tab scrollbar |
|---|---|---|---|---|---|
| 320×640 | 16–304 | 288×608 | yes | no | 0 |
| 375×667 | 16–359 | 343×635 | yes | no | 0 |
| 390×844 | 16–374 | 358×645 | yes | no | 0 |
| 540×700 | 16–524 | 508×625 | yes | no | 0 |
| 767×800 | 16–751 | 735×640 | yes | no | 15px |
| 768×800 | 16–752 | 736×526 | yes | no | — |
| 1280×800 | 268–1012 | 744×526 | yes | no | — |
Surfaces not run
- Web
/integrationspaywall — not attempted: it needs a signed-in, non-Pro session against the local API and database. The page renders the same shared component with no layout props, and Storybook ran it in the same Chromium engine. - Desktop paywall (Electron) — not attempted, for the same reason (signed-in non-Pro session needed to trigger
paywall()). Note the desktop's global thin scrollbar style will make finding 1 less visible there than on web. - iOS / mobile app — not affected by this PR.
Questions for the author
- Is the 346px preview height below
mdintentional? On a 667px-tall phone the description is partly hidden until the user scrolls. - Was the MobileApp story meant to show a non-first selected tab? If so, should the dialog scroll the selected tab into view on open?
Test / CI notes
- All at
995f04e8(PR head). Base for “before” shots:1a097655(component files only checked out locally, then restored). bunx biome check packages/ui/src/components/ProFeaturesDialog packages/ui/.storybook— 25 files, no issues.bunx tsc --noEmit -p packages/ui— exit 0.- CI at
995f04e8: all checks passed (Lint, Typecheck, Test, Sherif, Vale, Version Sync, Build CLI, page storage integration, all deploy previews). cubic neutral, Proof skipped. - No tests added; the change is layout-only, which fits the repo's test guidance.