fix: explicit sidebar active state, popup clears mobile bottom bar

This commit is contained in:
2026-03-21 21:06:25 +01:00
parent 710ac253e2
commit 5a7485f654
2 changed files with 3 additions and 3 deletions

View File

@@ -310,7 +310,7 @@ export function ServerCreationPopup({
!isCompleted && Object.values(steps).some((step) => step.status === 'in_progress');
return (
<div className="fixed right-4 bottom-4 z-40">
<div className="fixed right-4 bottom-20 md:bottom-4 z-40">
<button
onClick={() => setIsMinimized(false)}
className={`flex h-16 w-16 items-center justify-center rounded-full border-2 shadow-lg transition-all hover:scale-105 ${
@@ -364,7 +364,7 @@ export function ServerCreationPopup({
}
return (
<div className="fixed right-4 bottom-4 z-40 max-h-[600px] w-96 rounded-lg border border-gray-700 bg-gray-800 shadow-2xl select-none">
<div className="fixed right-4 bottom-20 md:bottom-4 z-40 max-h-[600px] w-96 rounded-lg border border-gray-700 bg-gray-800 shadow-2xl select-none">
<div className="flex items-center justify-between border-b border-gray-700 p-4">
<div className="flex items-center space-x-2">
<span className="text-lg">🔧</span>

View File

@@ -33,7 +33,7 @@ function UsersIcon({ active }: { active: boolean }) {
export function Sidebar({ showUsers }: SidebarProps) {
const pathname = usePathname();
const isServers = !pathname.startsWith('/dashboard/membership');
const isServers = pathname === '/dashboard' || pathname.startsWith('/dashboard/server');
const isUsers = pathname.startsWith('/dashboard/membership');
const navItems = [