From 25067bca306622520d2329fe82422a99134c75bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 1 Mar 2026 14:41:40 +0100 Subject: [PATCH] fix: stack units input row on mobile for better usability Value input now takes full width on its own row; unit selects and swap button sit on a separate row below, each taking equal flex space. Co-Authored-By: Claude Sonnet 4.6 --- components/units/MainConverter.tsx | 63 ++++++++++++++++-------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/components/units/MainConverter.tsx b/components/units/MainConverter.tsx index c82a987..fd71886 100644 --- a/components/units/MainConverter.tsx +++ b/components/units/MainConverter.tsx @@ -188,7 +188,7 @@ export default function MainConverter() { {/* Input row */} -
+
{/* Value input */} setInputValue(e.target.value)} placeholder="0" - className="flex-1 min-w-0 bg-transparent border border-border/40 rounded-lg px-3 py-2 text-sm font-mono outline-none focus:border-primary/50 transition-colors placeholder:text-muted-foreground/30 tabular-nums" + className="w-full bg-transparent border border-border/40 rounded-lg px-3 py-2.5 text-base font-mono outline-none focus:border-primary/50 transition-colors placeholder:text-muted-foreground/30 tabular-nums" /> - {/* From unit */} - + {/* Unit selectors + swap */} +
+ {/* From unit */} + - {/* Swap */} - + {/* Swap */} + - {/* To unit */} - + {/* To unit */} + +
{/* Result display */}