Repository navigation
fix(web): phone layouts of the card machines and team, dialogs that scrolled whole - #122
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
<input>withposition: absolutefor radios, checkboxes, switches and selects that have aname. That input escaped the scrolling body and made the popup scroll.DialogBodyis nowrelative(a local change tocomponents/ui/dialog.tsx, commented there), and so are the scroll areas ofResponsiveModal(this covers the customer's bag, whose payment method radios have aname), the tables' filter drawer on phones, the stock history and the order detail.Tests
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).pnpm checkandpnpm test:e2e(132 passed) pass.Deploy notes
Web only.