diff --git a/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx b/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx index 0ce0ae704..075de3ccd 100644 --- a/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx +++ b/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx @@ -87,11 +87,11 @@ export function DynamicTabs( const orientation: string = 'horizontal'; // TODO: Get orientation from tab block options const position: string = 'start'; // TODO: Get position from tab block options - const description = null; //'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; // null; // TODO: Get description from tabs + const description = null; // TODO: Get description from tabs // To avoid issue with hydration, we only use the state from localStorage // once the component has been mounted. - // Otherwise because of the streaming/suspense approach, tabs can be first-rendered at different time + // Otherwise because of the streaming/suspense approach, tabs can be first-rendered at different time // and get stuck into an inconsistent state. const mounted = useIsMounted(); const active = mounted ? activeState : tabs[0]; @@ -158,8 +158,6 @@ export function DynamicTabs( orientation === 'vertical' && position === 'end' && 'md:flex-row-reverse', style - // We need to inset the tabs container to make edge-to-edge scrolling work, since this container has overflow:hidden - // Also important to put this after the `style` to override those. )} >