From 5ae1b883ab41db163dd6203fe33a427d7aed9e75 Mon Sep 17 00:00:00 2001 From: Claire Chabas Date: Wed, 8 Jan 2025 16:59:32 +0100 Subject: [PATCH] Fix shrinking page icons (#2702) --- .changeset/dull-melons-beam.md | 5 +++++ .../gitbook/src/components/TableOfContents/TOCPageIcon.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/dull-melons-beam.md diff --git a/.changeset/dull-melons-beam.md b/.changeset/dull-melons-beam.md new file mode 100644 index 000000000..e37781032 --- /dev/null +++ b/.changeset/dull-melons-beam.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Fix shrinking page icons diff --git a/packages/gitbook/src/components/TableOfContents/TOCPageIcon.tsx b/packages/gitbook/src/components/TableOfContents/TOCPageIcon.tsx index 63b0e183a..08e0431c4 100644 --- a/packages/gitbook/src/components/TableOfContents/TOCPageIcon.tsx +++ b/packages/gitbook/src/components/TableOfContents/TOCPageIcon.tsx @@ -17,6 +17,7 @@ export function TOCPageIcon({ page }: { page: RevisionPage }) { 'dark:text-light/6', 'group-aria-current-page/toclink:text-primary', 'group-aria-current-page/toclink:dark:text-primary-400', + 'shrink-0', )} /> );