优化后端
This commit is contained in:
@@ -1506,3 +1506,220 @@
|
||||
min-height: 32px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Compact command receipt inside each AI assistant response. */
|
||||
.assistant-message-with-dispatched-controls {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.assistant-message-with-dispatched-controls .assistant-message-body {
|
||||
min-width: 0;
|
||||
flex: 1 1 0;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-vue-host {
|
||||
width: 100%;
|
||||
max-width: 336px;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls {
|
||||
width: 100%;
|
||||
max-width: 336px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
color: var(--assistant-text, #233044);
|
||||
background: color-mix(in oklch, var(--card) 91%, var(--accent));
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 18%, var(--border));
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 8px 24px color-mix(in oklch, var(--foreground) 7%, transparent);
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls > summary {
|
||||
min-height: 46px;
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 1fr) auto 18px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 7px 11px;
|
||||
color: var(--heading-foreground, #1e2f46);
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls > summary:focus-visible {
|
||||
outline: 2px solid color-mix(in oklch, var(--primary) 42%, transparent);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-heading-icon,
|
||||
.assistant-dispatched-control-icon {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
color: var(--primary, #2771e7);
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-heading-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: color-mix(in oklch, var(--primary) 9%, var(--card));
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-heading-icon svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
stroke-width: 1.9;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls > summary > b {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
font-weight: 850;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-count {
|
||||
min-width: 25px;
|
||||
height: 22px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
padding: 0 7px;
|
||||
color: var(--primary, #2771e7);
|
||||
background: color-mix(in oklch, var(--primary) 10%, var(--card));
|
||||
border-radius: 999px;
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-chevron {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
color: var(--muted-foreground, #67768b);
|
||||
transition: transform 160ms ease;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls[open] > summary .assistant-dispatched-controls-chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
border-top: 1px solid color-mix(in oklch, var(--primary) 17%, var(--border));
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-list > li {
|
||||
min-height: 55px;
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls-list > li + li {
|
||||
border-top: 1px solid color-mix(in oklch, var(--primary) 17%, var(--border));
|
||||
}
|
||||
|
||||
.assistant-dispatched-control-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.assistant-dispatched-control-icon svg {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
stroke-width: 1.8;
|
||||
}
|
||||
|
||||
.assistant-dispatched-control-label {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--muted-foreground, #5b687a);
|
||||
font-size: 12px;
|
||||
font-weight: 680;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.assistant-dispatched-control-value {
|
||||
max-width: 112px;
|
||||
overflow: hidden;
|
||||
color: var(--heading-foreground, #26364b);
|
||||
font-size: 12px;
|
||||
font-weight: 850;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* The function-mode strip is now the only homepage header. */
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .main-panel,
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync.assistant-drawer-open .main-panel {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .main-panel > .v2-mode-rail {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .v2-output-shell,
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync.assistant-drawer-open .v2-output-shell {
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .main-panel > .v2-mode-rail .v2-module-switcher,
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync.assistant-drawer-open .main-panel > .v2-mode-rail .v2-module-switcher {
|
||||
width: auto;
|
||||
min-width: max-content;
|
||||
min-height: 0;
|
||||
position: static;
|
||||
inset: auto;
|
||||
z-index: auto;
|
||||
display: block;
|
||||
grid-column: auto;
|
||||
grid-row: auto;
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
@media (min-width: 901px) {
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync.assistant-drawer-open .v2-operation-shell {
|
||||
grid-row: 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .main-panel {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .v2-output-shell {
|
||||
grid-row: 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.console-v2.assistant-chat-enabled.v2-passive-display.v2-interactive-sync .v2-operation-shell {
|
||||
top: 108px;
|
||||
}
|
||||
|
||||
.assistant-dispatched-controls {
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user