Skip to content

fix(web): phone layouts of the card machines and team, dialogs that scrolled whole - #122

Merged
dollyzn merged 1 commit into
mainfrom
fix/mobile-overflow-dialogs
Nov 22, 2026
Merged

dollyzn merged 1 commit into
mainfrom
fix/mobile-overflow-dialogs

Conversation

@dollyzn

@dollyzn dollyzn commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Why

After the partners release, a few screens broke on phones. On Pagamentos, a card machine in use got the "Usada por" select next to "Desativar". That row didn't fit, so the whole card ran off the screen: the select was cut and "Usar no PDV" and "Pix / QR" were off screen. On Equipe, the "Adicionar pessoa" dialog scrolled as a whole, footer included, and jumped when "Gerente do parceiro" or "Atendente do parceiro" was picked.

What

  • Card machines (Pagamentos): on phones, a machine's controls ("Usada por" and the button) wrap to a line of their own. The card no longer grows wider than the screen.
  • Dialogs: only the body scrolls again, and picking a radio no longer jumps. Base UI renders a hidden <input> with position: absolute for radios, checkboxes, switches and selects that have a name. That input escaped the scrolling body and made the popup scroll. DialogBody is now relative (a local change to components/ui/dialog.tsx, commented there), and so are the scroll areas of ResponsiveModal (this covers the customer's bag, whose payment method radios have a name), the tables' filter drawer on phones, the stock history and the order detail.
  • Team (Equipe): on phones, a member's controls take their own line. A partner's link and role select were 12px wider than the screen and scrolled the page sideways.

Tests

  • e2e: new test in store-members.spec.ts. On a phone, the add dialog with role Parceiro and a partner role picked doesn't scroll as a whole, and "Adicionar" stays on screen. It failed before the fix (the popup scrolled 341px).
  • A one-off sweep at 390px (not committed) found no sideways overflow after the fix. It checked every manager screen, the store page's tabs, settings, a partner's page, the partner area and the public menu, and it opened the create dialogs. The card machine card isn't covered there: the e2e store has no Mercado Pago.
  • pnpm check and pnpm test:e2e (132 passed) pass.

Deploy notes

Web only.

…crolled whole

The card machines on Pagamentos and a partner's row on Equipe were wider
than a phone and pushed the page sideways; their controls now wrap to a
line of their own. Dialogs scrolled as a whole, footer included, and
jumped when a radio was picked: Base UI's hidden inputs (absolute once a
control has a `name`) escaped the scrolling body, which is now their
containing block.
@dollyzn
dollyzn merged commit 5124bf9 into main Nov 22, 2026
4 checks passed
@dollyzn
dollyzn deleted the fix/mobile-overflow-dialogs branch November 25, 2026 04:41
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