diff --git a/frontend/src/common/top_bar.tsx b/frontend/src/common/top_bar.tsx index 0458f33e..de40f78f 100644 --- a/frontend/src/common/top_bar.tsx +++ b/frontend/src/common/top_bar.tsx @@ -1,4 +1,6 @@ +import clsx from 'clsx'; import { useLocation } from 'wouter'; + import { storeAuthToken } from '../api'; import { logout } from '../api/user'; import { primitiveWithClassname } from '../styled'; @@ -8,7 +10,28 @@ import { Popup } from '../components/popup'; import { showModal } from '../components/modal'; import { ChangePasswordModal } from '../components/change_password'; import { useAuthData } from '../utils/auth'; -export const TopBar = primitiveWithClassname('div', 'mb-8 flex items-center gap-4 justify-between'); + +const TopBarBg = primitiveWithClassname( + 'div', + 'fixed left-0 right-0 top-0 bg-black h-[52px] -z-10 bg-white dark:bg-neutral-900', +); + +export function TopBar({ children, className }: { children: React.ReactNode; className?: string }) { + return ( +