Fix search bar layout shit caused by the ToC (#3545)

This commit is contained in:
Claire Chabas
2025-08-07 15:19:20 +02:00
committed by GitHub
parent d30bcbabdb
commit ea7e94fc51
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Fix search bar layout shift caused by ToC
@@ -110,7 +110,6 @@ export function Header(props: {
'lg:max-w-lg',
'lg:ml-[max(calc((100%-18rem-48rem)/2),1.5rem)]', // container (100%) - sidebar (18rem) - content (48rem)
'xl:ml-[max(calc((100%-18rem-48rem-14rem-3rem)/2),1.5rem)]', // container (100%) - sidebar (18rem) - content (48rem) - outline (14rem) - margin (3rem)
'lg:page-no-toc:ml-[max(calc((100%-18rem-48rem-18rem-3rem)/2),0rem)]',
'md:mr-auto',
'order-last',
'md:order-[unset]',