fix: polish AmountInput layout for narrow mobile viewports (<=375px) (Closes #820) - #899
Open
waterWang wants to merge 1 commit into
Open
fix: polish AmountInput layout for narrow mobile viewports (<=375px) (Closes #820)#899waterWang wants to merge 1 commit into
waterWang wants to merge 1 commit into
Conversation
…loses Creditra#820) Audit AmountInput on <=375px viewports and adjust breakpoints from sm (640px) to xs (480px) for earlier responsive adaptation. Changes: - Add xs breakpoint (480px) to Tailwind v4 theme - Quick amount presets: grid-cols-2 -> xs:grid-cols-4 (2 cols on narrow) - Action buttons: flex-col -> xs:flex-row (stack on narrow, row on xs+) - Stepper buttons: w-10/h-10 -> xs:w-11/xs:h-11 (40px on narrow, 44px on xs+) - Action button width: w-full -> xs:w-auto (full width on narrow) - Input container: flex-wrap -> xs:flex-nowrap (wrap on narrow) - Skeleton follows same responsive pattern - Update mobile test to match new flex-col/xs:flex-row behavior
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.
Summary
Closes #820
Audits
AmountInputon <=375px viewports and adjusts the responsive breakpoints fromsm(640px) toxs(480px) so the mobile layout kicks in earlier.Changes
New:
xsbreakpoint (480px) in Tailwind v4 theme@theme { --breakpoint-xs: 480px; }tosrc/index.cssAmountInput responsive refinements
grid-cols-4at all sizesgrid-cols-2narrow →xs:grid-cols-4flex-col-reverse sm:flex-rowflex-colnarrow →xs:flex-roww-11 h-11(44×44) at all sizesw-10 h-10narrow →xs:w-11 xs:h-11w-full sm:flex-1w-fullnarrow →xs:w-autoflex-wrap sm:flex-nowrapflex-wrapnarrow →xs:flex-nowrapTest updates
flex-col/xs:flex-rowbehaviorTesting