fix(web): evitar el zoom residual de iOS al cerrar el teclado

iOS (Safari y standalone) auto-zoomea al enfocar un control de formulario
con font-size < 16px y, al cerrar el teclado, no restaura el scale: la app
quedaba con zoom hasta que el usuario hacía pinch-out o recargaba.

- Input sube a 16px en mobile (text-base sm:text-sm), manteniendo los
  14px de escritorio. iPad queda fuera porque el zoom-on-focus es
  exclusivo de iPhone.
- El prefijo $ de GroupForm sigue el mismo tamaño para no desalinearse.
- Guard en @layer base para textareas/selects/inputs crudos futuros.
This commit is contained in:
Jose Selesan
2026-09-28 22:57:22 -03:00
parent 9f2e770509
commit df510cfe45
3 changed files with 20 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ export function GroupForm({
<div>
<Label htmlFor="price">Precio</Label>
<div className="relative">
<span className="pointer-events-none absolute inset-y-0 left-3 flex items-center text-sm text-foreground/50">
<span className="pointer-events-none absolute inset-y-0 left-3 flex items-center text-base text-foreground/50 sm:text-sm">
$
</span>
<Input