diff --git a/.changeset/sixty-donkeys-check.md b/.changeset/sixty-donkeys-check.md new file mode 100644 index 00000000..30e5dd7d --- /dev/null +++ b/.changeset/sixty-donkeys-check.md @@ -0,0 +1,5 @@ +--- +'fumadocs-ui': patch +--- + +Fix sidebar footer issues diff --git a/packages/ui/src/layouts/docs.tsx b/packages/ui/src/layouts/docs.tsx index 27fb15d3..e69a107a 100644 --- a/packages/ui/src/layouts/docs.tsx +++ b/packages/ui/src/layouts/docs.tsx @@ -193,13 +193,24 @@ function SidebarHeaderItems({ function SidebarFooterItems({ iconItems, - ...props + i18n, + sidebarCollapsible, + disableThemeSwitch, }: { i18n: boolean; iconItems: IconItemType[]; disableThemeSwitch: boolean; sidebarCollapsible: boolean; }) { + // empty footer items + if ( + iconItems.length === 0 && + !i18n && + disableThemeSwitch && + !sidebarCollapsible + ) + return null; + return (