Skip to content

Commit

Permalink
Show numeric input on mobile for ticket ordering amounts, don't cut o…
Browse files Browse the repository at this point in the history
…ff double-digit numbers
  • Loading branch information
julianweng committed Oct 9, 2024
1 parent bbe2361 commit feec659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/pages/events/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,15 @@ const GetTicketItem: React.FC<TicketItemProps> = ({
</p>
<Input
type="number"
pattern="[0-9]*"
className="input"
min={0}
max={max}
value={count ?? 1}
step={1}
placeholder="Ticket Count"
onChange={handleCountChange}
style={{ flex: '0 0 auto', maxWidth: '48px' }}
style={{ flex: '0 0 auto', maxWidth: '64px' }}
/>
</div>
</div>
Expand Down

0 comments on commit feec659

Please sign in to comment.