From fe08919a683887ef7eead3ea8780521f145d39cc Mon Sep 17 00:00:00 2001 From: Pedro Kohler Date: Tue, 4 Feb 2025 08:06:21 -0300 Subject: [PATCH] fix: improve extra small screen styles --- frontend/src/Components/NumberInput.tsx | 2 +- .../src/Components/Sections/RSVP/RSVPForm.tsx | 80 +++++++++++-------- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/frontend/src/Components/NumberInput.tsx b/frontend/src/Components/NumberInput.tsx index 94b0612..4ae5988 100644 --- a/frontend/src/Components/NumberInput.tsx +++ b/frontend/src/Components/NumberInput.tsx @@ -14,7 +14,7 @@ export function NumberInput({ }) { return ( - Crianças acima de 12 anos: - Dependentes (12+ anos): +
{ - const newValue = value - 1; - if (isValidValue(newValue)) { - setValue(newValue); - } - }} - /> - { - if (isValidValue(Number(e.target.value))) { - onChange(e); - } - }} - /> - { - const newValue = value + 1; - if (isValidValue(newValue)) { - setValue(newValue); - } - }} - /> + > + { + const newValue = value - 1; + if (isValidValue(newValue)) { + setValue(newValue); + } + }} + /> + { + if (isValidValue(Number(e.target.value))) { + onChange(e); + } + }} + /> + { + const newValue = value + 1; + if (isValidValue(newValue)) { + setValue(newValue); + } + }} + /> +
); };