Fix iOS Safari auto-zoom on input focus by ensuring 16px minimum font size on mobile

This commit is contained in:
Alex Gleason committed 2026-03-07 11:38:12 -06:00
1 parent c88350270a
commit ba892fdd54
7 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -119,7 +119,7 @@ const ZapContent = forwardRef<HTMLDivElement, ZapContentProps>(({
id="invoice"
value={invoice}
readOnly
className="font-mono text-xs min-w-0 flex-1 overflow-hidden text-ellipsis"
className="font-mono text-base md:text-xs min-w-0 flex-1 overflow-hidden text-ellipsis"
onClick={(e) => e.currentTarget.select()}
/>
<Button
@@ -206,14 +206,14 @@ const ZapContent = forwardRef<HTMLDivElement, ZapContentProps>(({
placeholder="Custom amount"
value={amount}
onChange={(e) => setAmount(e.target.value)}
className="w-full text-sm"
className="w-full"
/>
<Textarea
id="custom-comment"
placeholder="Add a comment (optional)"
value={comment}
onChange={(e) => setComment(e.target.value)}
className="w-full resize-none text-sm"
className="w-full resize-none"
rows={2}
/>
</div>