diff --git a/.changeset/moody-camels-work.md b/.changeset/moody-camels-work.md new file mode 100644 index 00000000..ad370164 --- /dev/null +++ b/.changeset/moody-camels-work.md @@ -0,0 +1,5 @@ +--- +'fumadocs-ui': patch +--- + +Add center to root toggle diff --git a/packages/ui/src/components/layout/root-toggle.tsx b/packages/ui/src/components/layout/root-toggle.tsx index ee408a77..37e4a052 100644 --- a/packages/ui/src/components/layout/root-toggle.tsx +++ b/packages/ui/src/components/layout/root-toggle.tsx @@ -48,7 +48,7 @@ export function RootToggle({ href={item.url} onClick={onClick} className={cn( - 'flex w-full flex-row gap-2 p-2', + 'flex w-full flex-row items-center gap-2.5 p-2', selected === item ? 'bg-fd-accent text-fd-accent-foreground' : 'hover:bg-fd-accent/50',