fix: init app use same width numbers (#2155)
This commit is contained in:
@@ -204,7 +204,7 @@ export default function Counter(props: CounterProps) {
|
|||||||
return (
|
return (
|
||||||
<div class="flex gap-8 py-6">
|
<div class="flex gap-8 py-6">
|
||||||
<Button onClick={() => props.count.value -= 1}>-1</Button>
|
<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>
|
<Button onClick={() => props.count.value += 1}>+1</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -441,6 +441,9 @@ html {
|
|||||||
.hover\\:bg-gray-200:hover {
|
.hover\\:bg-gray-200:hover {
|
||||||
background-color: #e5e7eb;
|
background-color: #e5e7eb;
|
||||||
}
|
}
|
||||||
|
.tabular-nums {
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const APP_WRAPPER = `import { type PageProps } from "$fresh/server.ts";
|
const APP_WRAPPER = `import { type PageProps } from "$fresh/server.ts";
|
||||||
|
|||||||
Reference in New Issue
Block a user