Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Bug Fix - Nav elements overlap (#25966)

Chetan Lohkare77dfed4b7c03
diff --git a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
index 45984e87258..cda0a21ff0e 100644
--- a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
@@ -106,21 +106,21 @@ const NavigationBar = () => {
<nav
data-state={snap.navigationPanelOpen ? 'expanded' : 'collapsed'}
className={cn(
- 'group py-2 z-10 h-full w-14 data-[state=expanded]:w-[13rem]',
+ 'group pb-2 z-10 h-full w-14 data-[state=expanded]:w-[13rem]',
'border-r bg-dash-sidebar border-default data-[state=expanded]:shadow-xl',
'transition-width duration-200',
- 'hide-scrollbar flex flex-col justify-between overflow-y-auto'
+ 'hide-scrollbar flex flex-col overflow-y-auto'
)}
onMouseEnter={() => snap.setNavigationPanelOpen(true)}
onMouseLeave={() => {
if (!userDropdownOpen) snap.setNavigationPanelOpen(false)
}}
>
- <ul className="flex flex-col gap-y-1 justify-start px-2">
- {(!navLayoutV2 || !IS_PLATFORM) && (
+ {(!navLayoutV2 || !IS_PLATFORM) && (
+ <div className="sticky top-0 mb-1 pb-1 px-2 flex h-[48px] bg-dash-sidebar z-10">
<Link
href={IS_PLATFORM ? '/projects' : `/project/${projectRef}`}
- className="mx-2 flex items-center h-[40px]"
+ className="mx-2 flex items-center h-[48px]"
onClick={onCloseNavigationIconLink}
>
<img
@@ -129,7 +129,9 @@ const NavigationBar = () => {
className="absolute h-[40px] w-6 cursor-pointer rounded"
/>
</Link>
- )}
+ </div>
+ )}
+ <ul className="flex flex-col gap-y-1 justify-start px-2">
<NavigationIconLink
isActive={isUndefined(activeRoute) && !isUndefined(router.query.ref)}
route={{