fix: init app use same width numbers (#2155)

This commit is contained in:
Marvin Hagemeister
2023-12-07 11:30:14 +01:00
committed by GitHub
parent 3410470d5e
commit 90b0642bdd
+4 -1
View File
@@ -204,7 +204,7 @@ export default function Counter(props: CounterProps) {
return (
<div class="flex gap-8 py-6">
<Button onClick={() => props.count.value -= 1}>-1</Button>
<p class="text-3xl">{props.count}</p>
<p class="text-3xl tabular-nums">{props.count}</p>
<Button onClick={() => props.count.value += 1}>+1</Button>
</div>
);
@@ -441,6 +441,9 @@ html {
.hover\\:bg-gray-200:hover {
background-color: #e5e7eb;
}
.tabular-nums {
font-variant-numeric: tabular-nums;
}
`;
const APP_WRAPPER = `import { type PageProps } from "$fresh/server.ts";