From 82ab663cabdb61924633b9638fb3658b3f06fce3 Mon Sep 17 00:00:00 2001 From: "Dedy F. Setyawan" Date: Thu, 3 Jul 2025 12:07:16 +0700 Subject: [PATCH] fix(ui): improve mobile layout for subscribe form --- src/components/Form/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Form/index.tsx b/src/components/Form/index.tsx index 5b24caa3c..613bb86b5 100644 --- a/src/components/Form/index.tsx +++ b/src/components/Form/index.tsx @@ -36,7 +36,8 @@ const ErrorMessage = ({ ); -const WIDTH = 180; +const WIDTH = "50%"; +const MAX_WIDTH = 180; const HEIGHT = 70; function SubscribeSection() { @@ -205,12 +206,12 @@ export const Form = ({ fireInput }: { fireInput?: () => void }) => { placeholder="Your email address..." disabled={formState === STATES.LOADING || formState === STATES.SUCCESS} onChange={onChange} - style={{ maxWidth: WIDTH, minHeight: HEIGHT }} + style={{ width: WIDTH, maxWidth: MAX_WIDTH, minHeight: HEIGHT, textOverflow: "ellipsis" }} />