feat: integrate production cockpit AI assistant
This commit is contained in:
@@ -7101,6 +7101,195 @@ body.device-power-drawer-open {
|
||||
linear-gradient(165deg, var(--card), var(--secondary));
|
||||
}
|
||||
|
||||
/* Body-level portal: the horizontal mode rail clips its own overflow. */
|
||||
.mode-chip-action-popover {
|
||||
width: min(430px, calc(100vw - 24px));
|
||||
max-height: min(68vh, 520px);
|
||||
position: fixed;
|
||||
z-index: 1900;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
gap: 9px;
|
||||
padding: 11px;
|
||||
overflow: hidden;
|
||||
color: var(--popover-foreground);
|
||||
background: color-mix(in oklch, var(--popover) 96%, var(--primary));
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 24%, var(--border));
|
||||
border-radius: 14px;
|
||||
box-shadow:
|
||||
0 16px 42px color-mix(in oklch, var(--foreground) 18%, transparent),
|
||||
0 0 0 1px color-mix(in oklch, var(--card) 65%, transparent) inset;
|
||||
backdrop-filter: blur(16px);
|
||||
transform-origin: top center;
|
||||
animation: mode-action-popover-in 140ms ease-out;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover.is-above {
|
||||
transform-origin: bottom center;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover > header,
|
||||
.mode-chip-action-popover > header > span {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover > header {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover > header > span {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover > header small {
|
||||
color: var(--muted-foreground);
|
||||
font-size: 8px;
|
||||
font-weight: 760;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover > header strong {
|
||||
max-width: 330px;
|
||||
overflow: hidden;
|
||||
color: var(--heading-foreground);
|
||||
font-size: 13px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover > header b {
|
||||
min-width: 38px;
|
||||
min-height: 22px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
padding: 3px 7px;
|
||||
color: var(--primary);
|
||||
background: color-mix(in oklch, var(--primary) 10%, var(--card));
|
||||
border-radius: 999px;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover ol {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
margin: 0;
|
||||
padding: 0 3px 0 0;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: thin;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mode-chip-action-popover li {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: 24px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: 8px;
|
||||
padding: 7px 8px;
|
||||
color: var(--body-foreground);
|
||||
background: color-mix(in oklch, var(--secondary) 66%, var(--card));
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.mode-chip-action-step {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
color: var(--primary);
|
||||
background: color-mix(in oklch, var(--primary) 9%, var(--card));
|
||||
border-radius: 7px;
|
||||
font-size: 8px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.mode-chip-action-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.mode-chip-action-copy > strong {
|
||||
overflow: hidden;
|
||||
color: var(--heading-foreground);
|
||||
font-size: 10px;
|
||||
line-height: 1.3;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mode-chip-action-copy > small {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 3px 10px;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 8px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.mode-chip-action-copy > small > span {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.mode-chip-action-copy > small b {
|
||||
margin-right: 3px;
|
||||
color: var(--primary);
|
||||
font-size: 7px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.mode-chip-action-empty {
|
||||
display: block !important;
|
||||
padding: 13px !important;
|
||||
color: var(--muted-foreground) !important;
|
||||
font-size: 9px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@keyframes mode-action-popover-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-3px) scale(0.985);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.mode-chip-action-popover {
|
||||
max-height: min(58vh, 430px);
|
||||
padding: 9px;
|
||||
}
|
||||
|
||||
.mode-chip-action-copy > small {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.mode-chip-action-popover {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.console-v2.v2-passive-display.v2-interactive-sync .v2-synced-device,
|
||||
.console-v2.v2-passive-display.v2-interactive-sync #v2ExtensionPanel .v2-extension-gateway,
|
||||
.console-v2.v2-passive-display.v2-interactive-sync #v2ExtensionPanel .v2-extension-synced-device {
|
||||
|
||||
Reference in New Issue
Block a user