fix(ui): lift theme popover out of header stacking context to appear above modals

This commit is contained in:
Will Miao
2026-06-18 22:19:36 +08:00
parent 3012a7aef3
commit a617487a43
3 changed files with 71 additions and 54 deletions

View File

@@ -329,16 +329,14 @@
.theme-popover {
display: none;
position: absolute;
top: calc(100% + 8px);
right: -8px;
position: fixed;
background: var(--surface-base, #ffffff);
border: 1px solid var(--border-base, #e0e0e0);
border-radius: var(--radius-md, 8px);
box-shadow: var(--shadow-xl, 0 4px 16px rgba(0, 0, 0, 0.15));
padding: 12px;
min-width: 220px;
z-index: var(--z-dropdown, 200);
z-index: calc(var(--z-overlay) + 1);
animation: theme-popover-in 0.15s ease-out;
}