Skip to content

fix(ui): the permission dialog's primary action was below the fold - #34

Merged
vietanhdev merged 1 commit into
mainfrom
fix/dialog-actions-below-fold
Jul 20, 2026
Merged

fix(ui): the permission dialog's primary action was below the fold#34
vietanhdev merged 1 commit into
mainfrom
fix/dialog-actions-below-fold

Conversation

@vietanhdev

Copy link
Copy Markdown
Owner

Found by looking at a screenshot from the launch test, not by reading markup.

The bug

The action row lived inside .dialog-content, which scrolls. At the app's own 700px minimum window height the content is taller than the space available — so Setup Permissions sat below the fold with nothing indicating it was there.

A first-run user had to discover that a dialog scrolls in order to find the only button that does anything.

Before — scrollbar visible, no buttons:

content ends at "Turbo boost settings", nothing below

After — both actions pinned:

Skip for Now and Setup Permissions visible without scrolling

Three changes were needed for the fix to hold

  1. .dialog-container becomes a flex column. As a block it pushes the row past max-height instead of holding it in view — which looks identical in a tall window and breaks in a short one.
  2. .dialog-content flexes instead of calc(90vh - 180px). That calculation guessed at header and footer heights and was wrong whenever either changed.
  3. The row is .dialog-actions, not .dialog-footer. The About dialog already uses .dialog-footer for centred copyright text; overloading it would have restyled that too.

Verification

Rebuilt the real package and screenshotted through the container launch test. Two tests pin the structure — this is exactly the kind of thing that looks fine in a maximised window and regresses silently.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 19, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
thinkutils ebfb285 Jul 20 2026, 03:28 AM

Found by looking at a screenshot from the launch test rather than by
reading the markup.

The action row lived inside .dialog-content, which scrolls. At the app's
own 700px minimum window height the content is taller than the available
space, so 'Setup Permissions' sat below the fold with nothing indicating
it was there -- a first-run user had to discover that a dialog scrolls to
find the only button that does anything.

The row moves outside the scrolling body and is pinned. Three changes
were needed for that to actually hold:

  .dialog-container becomes a flex column. As a block it pushes the row
  past max-height instead of holding it in view -- which looks identical
  in a tall window and breaks in a short one.

  .dialog-content flexes instead of using calc(90vh - 180px). That
  calculation guessed at the header and footer heights and was wrong
  whenever either changed.

  The row is .dialog-actions, not .dialog-footer. The About dialog
  already uses .dialog-footer for centred copyright text, and overloading
  it would have restyled that too.

Verified by rebuilding and screenshotting through the container launch
test: both buttons are now visible without scrolling. Two tests pin the
structure, since this is the kind of thing that looks fine in a
maximised window and regresses silently.
@vietanhdev
vietanhdev force-pushed the fix/dialog-actions-below-fold branch from 9a6b9ca to ebfb285 Compare July 20, 2026 03:25
@vietanhdev
vietanhdev merged commit 37bb73d into main Jul 20, 2026
9 of 10 checks passed
@vietanhdev
vietanhdev deleted the fix/dialog-actions-below-fold branch July 20, 2026 03:36
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.

1 participant