Skip to content

Commit 6eda3ed

Browse files
committed
Use tabular-nums for versions
1 parent ad748cb commit 6eda3ed

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

apps/web/ui/nav.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,18 @@ export function NavBar({ version }: { version: string }) {
6060
function VersionNav({ version }: { version: string }) {
6161
return (
6262
<DropdownMenu>
63-
<DropdownMenuTrigger className="text-sm bg-secondary text-primary rounded-lg px-2">
63+
<DropdownMenuTrigger className="text-sm bg-secondary text-primary rounded-lg px-2 tabular-nums">
6464
{version}
6565
</DropdownMenuTrigger>
66-
<DropdownMenuContent>
67-
<DropdownMenuItem className="p-0">
68-
<span className="w-full px-2 py-1">{version}</span>
66+
<DropdownMenuContent className="min-w-[5rem]">
67+
<DropdownMenuItem className="p-0 text-center">
68+
<span className="w-full px-2 py-1 tabular-nums">{version}</span>
6969
</DropdownMenuItem>
70-
<DropdownMenuItem className="p-0">
71-
<a href="https://v0.codehike.org/docs" className="w-full px-2 py-1">
70+
<DropdownMenuItem className="p-0 text-center">
71+
<a
72+
href="https://v0.codehike.org/docs"
73+
className="w-full px-2 py-1 tabular-nums"
74+
>
7275
0.9.0
7376
</a>
7477
</DropdownMenuItem>

0 commit comments

Comments
 (0)