From b2ad7babcb5692656fba9e639785be6f1c4b84d3 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Wed, 3 Apr 2024 16:34:30 -0400 Subject: [PATCH] Dropdown and Menu styling --- src/common/Dropdown2.svelte | 5 +- src/common/Menu.svelte | 28 ++++---- src/lib/components/accounts/UserMenu.svelte | 72 +++++++++++++++++++ src/lib/components/sidebar/SidebarItem.svelte | 6 +- 4 files changed, 95 insertions(+), 16 deletions(-) diff --git a/src/common/Dropdown2.svelte b/src/common/Dropdown2.svelte index c6ae14619..d34e9134a 100644 --- a/src/common/Dropdown2.svelte +++ b/src/common/Dropdown2.svelte @@ -133,8 +133,9 @@ .title { display: block; cursor: pointer; - padding: 0.5rem; - border-radius: var(--radius); + padding: 0.25rem; + color: var(--gray-5); + fill: var(--gray-4); } .title.border { border: 1px solid rgba(0, 0, 0, 0.1); diff --git a/src/common/Menu.svelte b/src/common/Menu.svelte index 8947bdd3f..62a1e2d76 100644 --- a/src/common/Menu.svelte +++ b/src/common/Menu.svelte @@ -2,18 +2,22 @@ Define some menu items - diff --git a/src/lib/components/accounts/UserMenu.svelte b/src/lib/components/accounts/UserMenu.svelte index e69de29bb..95903e69b 100644 --- a/src/lib/components/accounts/UserMenu.svelte +++ b/src/lib/components/accounts/UserMenu.svelte @@ -0,0 +1,72 @@ + + + + + Avatar + {user.name} + + + + + + {$_("authSection.user.acctSettings")} + + + + + {$_("authSection.user.uploadEmail")} + + + + {$_("authSection.user.signOut")} + + + + + diff --git a/src/lib/components/sidebar/SidebarItem.svelte b/src/lib/components/sidebar/SidebarItem.svelte index a827d775b..4ca2eeb1d 100644 --- a/src/lib/components/sidebar/SidebarItem.svelte +++ b/src/lib/components/sidebar/SidebarItem.svelte @@ -39,14 +39,16 @@ border-radius: 0.25rem; border: none; - color: var(--gray-5, #233944); - fill: var(--gray-5, #233944); + color: inherit; + fill: inherit; background: transparent; font-family: var(--font-sans, "Source Sans Pro"); font-size: var(--font-m, 1rem); font-weight: var(--font-semibold, 600); text-decoration: none; + white-space: nowrap; + text-overflow: ellipsis; } /* Hover */