Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

fix(docs): Fix menu auth on mobile (#153)

Pavel 'Strajk' Dolecek794a08f71166
diff --git a/apps/docs/src/components/Auth.tsx b/apps/docs/src/components/Auth.tsx
index 2f7d2dea0..de165b6c4 100644
--- a/apps/docs/src/components/Auth.tsx
+++ b/apps/docs/src/components/Auth.tsx
@@ -167,7 +167,7 @@ export const Auth = function () {
</div>
</div>
) : (
- <div className="flex items-center gap-3">
+ <div className="flex items-center justify-center gap-3">
{/* @ts-ignore */}
<Button
onClick={() => signIn()}
diff --git a/apps/docs/src/components/MobileNavigation.tsx b/apps/docs/src/components/MobileNavigation.tsx
index cc6b2d883..15872d88c 100644
--- a/apps/docs/src/components/MobileNavigation.tsx
+++ b/apps/docs/src/components/MobileNavigation.tsx
@@ -118,7 +118,7 @@ function MobileNavigationDialog({
>
<motion.div
layoutScroll
- className="fixed bottom-0 left-0 top-14 w-full overflow-y-auto bg-white px-4 pb-4 pt-6 shadow-lg shadow-zinc-900/10 ring-1 ring-zinc-900/7.5 dark:bg-zinc-900 dark:ring-zinc-800 min-[416px]:max-w-sm sm:px-6 sm:pb-10"
+ className="fixed bottom-0 left-0 top-14 w-full overflow-y-auto overflow-x-hidden bg-white px-4 pb-4 pt-6 shadow-lg shadow-zinc-900/10 ring-1 ring-zinc-900/7.5 dark:bg-zinc-900 dark:ring-zinc-800 min-[416px]:max-w-sm sm:px-6 sm:pb-10"
>
<Navigation />
</motion.div>
diff --git a/apps/docs/src/components/Navigation.tsx b/apps/docs/src/components/Navigation.tsx
index fb98b135c..794ba394a 100644
--- a/apps/docs/src/components/Navigation.tsx
+++ b/apps/docs/src/components/Navigation.tsx
@@ -357,13 +357,20 @@ export function Navigation(props) {
className={groupIndex === 0 && 'md:mt-0'}
/>
))}
- <li className="sticky bottom-0 z-10 mt-6">
+ <li className="z-10 mt-6">
<Feedback
variant="secondary"
className="w-full"
/>
</li>
- <li className="sticky bottom-0 z-10 mt-6 min-[540px]:hidden">
+ <li
+ /* -1.5rem to stretch outside the padding of the parent list */
+ className="
+ sticky bottom-[-1.5rem] z-10 mx-[-1.5rem] mt-[1.5rem] py-3
+ backdrop-blur-lg backdrop-filter
+ min-[540px]:hidden
+ "
+ >
<Auth />
</li>
</ul>