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)
This commit is contained in:
1 parent
d68799da25
commit
a2dc496cc1
1 file changed
+9
-10
@@ -168,11 +168,12 @@
|
|||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
min-width: 100%;
|
min-width: 200px;
|
||||||
|
width: max-content;
|
||||||
background-color: var(--bg-tertiary);
|
background-color: var(--bg-tertiary);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
padding: 4px 0;
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -200,31 +201,29 @@
|
|||||||
.menu.expand-left {
|
.menu.expand-left {
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 0;
|
right: 0;
|
||||||
min-width: 320px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.option {
|
.option {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px 16px;
|
padding: 10px 16px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 150ms ease;
|
transition: background-color 150ms ease, color 150ms ease;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu.compact .option {
|
.menu.compact .option {
|
||||||
padding: 10px 14px;
|
padding: 8px 12px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.option:hover {
|
.option:hover {
|
||||||
background-color: var(--bg-hover);
|
background-color: var(--bg-hover);
|
||||||
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.option.selected {
|
.option.selected {
|
||||||
|
|||||||
Reference in new issue
Block a user