diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelte
index 004909298..435037fd6 100644
--- a/src/lib/components/navbar.svelte
+++ b/src/lib/components/navbar.svelte
@@ -23,14 +23,13 @@
Navbar,
Icon,
Layout,
- Link,
Tooltip,
- Card,
ActionMenu,
ToggleButton,
Button,
Avatar,
- Typography
+ Typography,
+ Popover
} from '@appwrite.io/pink-svelte';
import { toggleCommandCenter } from '$lib/commandCenter/commandCenter.svelte';
import {
@@ -209,91 +208,79 @@
{isMac() ? '⌘ + K' : 'Ctrl + K'}
- {
- showAccountMenu = !showAccountMenu;
- shouldAnimateThemeToggle = false;
- if (showAccountMenu) {
- trackEvent(Click.MenuDropDownClick);
- }
- }}>
-
+
+
-
- {#if showAccountMenu}
-
-
+
+
+
-
-
-
-
- {$user.email}
-
-
-
- Account
+
+
+ {$user.email}
+
+
+
+ Account
- logout()}>Sign out
-
-
- Theme
-
- {
- setTimeout(() => {
- shouldAnimateThemeToggle = true;
- }, 150);
- }}
- buttons={[
- {
- id: 'light',
- label: 'Light',
- icon: IconSun
- },
- {
- id: 'dark',
- label: 'Dark',
- icon: IconMoon
- },
- {
- id: 'auto',
- label: 'System',
- icon: IconMode
- }
- ]}>
-
-
+
logout()}>Sign out
+
+
+ Theme
+
+ {
+ setTimeout(() => {
+ shouldAnimateThemeToggle = true;
+ }, 150);
+ }}
+ buttons={[
+ {
+ id: 'light',
+ label: 'Light',
+ icon: IconSun
+ },
+ {
+ id: 'dark',
+ label: 'Dark',
+ icon: IconMoon
+ },
+ {
+ id: 'auto',
+ label: 'System',
+ icon: IconMode
+ }
+ ]}>
-
+
-
-
-
- {/if}
+
+
+
@@ -405,24 +392,6 @@
}
}
- .account-container {
- position: absolute;
- right: var(--space-7);
- top: var(--base-44);
- width: 244px;
- display: flex;
- z-index: 1;
- }
-
- .account-backdrop {
- position: absolute;
- left: 0;
- top: 0;
- width: 100vw;
- height: 100vh;
- background-color: transparent;
- }
-
/* The default drop list has a max-inline width of 280px, which squeezes the support modal. */
:global(.extended-width) {
max-inline-size: none;