diff --git a/.changeset/gorgeous-kids-dream.md b/.changeset/gorgeous-kids-dream.md new file mode 100644 index 000000000..478abe10b --- /dev/null +++ b/.changeset/gorgeous-kids-dream.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Update footer styling and allow for more than 4 footer groups diff --git a/packages/gitbook/src/components/Footer/Footer.tsx b/packages/gitbook/src/components/Footer/Footer.tsx index 49e03a2e8..083d2fbf6 100644 --- a/packages/gitbook/src/components/Footer/Footer.tsx +++ b/packages/gitbook/src/components/Footer/Footer.tsx @@ -2,6 +2,7 @@ import { CustomizationSettings, SiteCustomizationSettings, Space } from '@gitboo import React from 'react'; import { Image } from '@/components/utils'; +import { partition } from '@/lib/arrays'; import { ContentRefContext } from '@/lib/references'; import { tcls } from '@/lib/tailwind'; @@ -9,6 +10,8 @@ import { FooterLinksGroup } from './FooterLinksGroup'; import { CONTAINER_STYLE } from '../layout'; import { ThemeToggler } from '../ThemeToggler'; +const FOOTER_COLUMNS = 4; + export function Footer(props: { space: Space; context: ContentRefContext; @@ -17,125 +20,115 @@ export function Footer(props: { const { context, customization } = props; return ( -
{group.title}
- {group.links.map((link, index) => { - return