fix(ui): make rig switching atomic and visible
This commit is contained in:
@@ -1407,6 +1407,33 @@ small { color: var(--text-muted); }
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
position: relative;
|
||||
}
|
||||
.header-rig-summary {
|
||||
position: absolute;
|
||||
top: calc(100% + 0.3rem);
|
||||
left: 0;
|
||||
z-index: 20;
|
||||
width: max-content;
|
||||
max-width: min(28rem, calc(100vw - 2rem));
|
||||
padding: 0.25rem 0.45rem;
|
||||
border: 1px solid color-mix(in srgb, var(--border-light) 75%, transparent);
|
||||
border-radius: var(--radius-sm);
|
||||
background: color-mix(in srgb, var(--card-bg) 96%, transparent);
|
||||
color: var(--text-muted);
|
||||
box-shadow: 0 7px 20px color-mix(in srgb, #000 24%, transparent);
|
||||
font-size: var(--fs-xs);
|
||||
line-height: 1.35;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: opacity var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
|
||||
}
|
||||
.header-rig-switch:hover .header-rig-summary,
|
||||
.header-rig-switch:focus-within .header-rig-summary,
|
||||
.header-rig-switch.is-switching .header-rig-summary {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
.header-rig-switch select {
|
||||
min-width: 8rem;
|
||||
|
||||
Reference in New Issue
Block a user