diff --git a/packages/gitbook/src/components/Cookies/CookiesToast.tsx b/packages/gitbook/src/components/Cookies/CookiesToast.tsx
index 281e6ad91..f3cc52a44 100644
--- a/packages/gitbook/src/components/Cookies/CookiesToast.tsx
+++ b/packages/gitbook/src/components/Cookies/CookiesToast.tsx
@@ -43,7 +43,7 @@ export function CookiesToast(props: { privacyPolicy?: string }) {
aria-describedby={describedById}
className={tcls(
'fixed',
- 'z-10',
+ 'z-50',
'bg-tint-base',
'rounded',
'straight-corners:rounded-none',
diff --git a/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx b/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx
index 0638e5ba1..0ce0ae704 100644
--- a/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx
+++ b/packages/gitbook/src/components/DocumentView/Tabs/DynamicTabs.tsx
@@ -84,8 +84,10 @@ export function DynamicTabs(
);
}, [id, tabs, tabsState]);
- const position: string = 'top'; // TODO: Get position from tab block options
- const description = null; // TODO: Get description from tabs
+ 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
// To avoid issue with hydration, we only use the state from localStorage
// once the component has been mounted.
@@ -148,21 +150,16 @@ export function DynamicTabs(
className={tcls(
'flex',
'flex-col',
- position === 'left' && 'gap-4 md:flex-row',
- position === 'right' && 'gap-4 md:flex-row-reverse',
'overflow-hidden',
+ 'pb-1',
- style,
+ orientation === 'horizontal' && position === 'start' && 'flex-col',
+ orientation === 'vertical' && position === 'start' && 'md:flex-row',
+ 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.
- '-mx-4',
- 'px-4',
- 'sm:-mx-6',
- 'sm:px-6',
- 'md:mx-auto',
- 'md:px-0',
- 'w-auto',
- 'md:w-full'
)}
>