Fix admin dropdown dismissing when cursor moves into menu
The menu was positioned top:calc(100%+4px), leaving a 4px dead zone between the trigger and the menu that interrupted the :hover chain. Changed to top:100% with padding-top:6px + margin-top:-2px so the menu's hover area is contiguous with the trigger — no more needing to mouse over quickly to keep the dropdown open. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-2
@@ -524,18 +524,22 @@ hr {
|
|||||||
.lt-nav-dropdown-menu {
|
.lt-nav-dropdown-menu {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: calc(100% + 4px);
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
background: var(--bg-overlay, rgba(6,12,20,0.98));
|
background: var(--bg-overlay, rgba(6,12,20,0.98));
|
||||||
border: 1px solid var(--accent-cyan-border);
|
border: 1px solid var(--accent-cyan-border);
|
||||||
box-shadow: var(--box-glow-cyan), 0 16px 40px rgba(0,0,0,0.8);
|
box-shadow: var(--box-glow-cyan), 0 16px 40px rgba(0,0,0,0.8);
|
||||||
z-index: var(--z-dropdown);
|
z-index: var(--z-dropdown);
|
||||||
|
/* Invisible bridge above the menu so moving the cursor down from the
|
||||||
|
trigger into the menu doesn't cross a hover-dead gap */
|
||||||
|
padding-top: 6px;
|
||||||
|
margin-top: -2px;
|
||||||
}
|
}
|
||||||
.lt-nav-dropdown-menu::before {
|
.lt-nav-dropdown-menu::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0; left: 0; right: 0;
|
top: 6px; left: 0; right: 0;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: var(--accent-cyan);
|
background: var(--accent-cyan);
|
||||||
box-shadow: var(--glow-cyan);
|
box-shadow: var(--glow-cyan);
|
||||||
|
|||||||
Reference in New Issue
Block a user