From af9c7d4eb9ebe5af8ac59e647f7864d58ca737a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindre=20B=C3=B8yum?= Date: Thu, 16 Jun 2022 23:44:29 +0200 Subject: [PATCH] www: use `tabular-nums` on Counter count (#242) `font-variant-numeric: tabular-nums` make each number glyph take up the same amount of space, which in turn makes the add and subtract buttons move less about when altering the count. --- www/islands/Counter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/islands/Counter.tsx b/www/islands/Counter.tsx index f7dc878c..9b2db052 100644 --- a/www/islands/Counter.tsx +++ b/www/islands/Counter.tsx @@ -22,7 +22,7 @@ export default function Counter(props: CounterProps) { > -
{count}
+
{count}
setCount(count + 1)}