From a2dc496cc1ebcb5d525b7c159dd2c857294a79f7 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Wed, 28 Jan 2026 17:16:31 -0600 Subject: [PATCH] style(dropdown): improve dropdown menu styling for consistency - Increased menu min-width to 200px with width: max-content to prevent word wrap on options - Added padding: 4px 0 to menu (matches context menus) - Changed box-shadow to match context menu (0 8px 24px) - Reduced option padding to 10px 16px (was 12px 16px) - Changed font-size to 13px (was 14px) to match context menus - Added color transition on hover to match context menus - Removed overflow/text-overflow from options (no wrap needed) --- src/lib/components/Dropdown.svelte | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/lib/components/Dropdown.svelte b/src/lib/components/Dropdown.svelte index d92a98bce..e5a87423c 100644 --- a/src/lib/components/Dropdown.svelte +++ b/src/lib/components/Dropdown.svelte @@ -168,11 +168,12 @@ top: 100%; left: 0; margin-top: 4px; - min-width: 100%; + min-width: 200px; + width: max-content; background-color: var(--bg-tertiary); border-radius: 8px; - overflow: hidden; - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); + padding: 4px 0; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); z-index: 10000; max-height: 300px; overflow-y: auto; @@ -200,31 +201,29 @@ .menu.expand-left { left: auto; right: 0; - min-width: 320px; } .option { width: 100%; - padding: 12px 16px; + padding: 10px 16px; text-align: left; - font-size: 14px; + font-size: 13px; color: var(--text-secondary); background: none; border: none; cursor: pointer; - transition: background-color 150ms ease; + transition: background-color 150ms ease, color 150ms ease; white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } .menu.compact .option { - padding: 10px 14px; + padding: 8px 12px; font-size: 12px; } .option:hover { background-color: var(--bg-hover); + color: var(--text-primary); } .option.selected {