feat: integrate safer vehicle CAN reasoning
This commit is contained in:
@@ -3283,3 +3283,209 @@
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
.reasoning-segmented {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.reasoning-option > span > strong {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.reasoning-option > span > small,
|
||||
.reasoning-option > .reasoning-check {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.reasoning-option:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* Market-style model intelligence picker: a compact composer pill expands
|
||||
into an overlay only when the user needs to change the reasoning level. */
|
||||
.console-v2 .v2-reasoning-field {
|
||||
width: 320px;
|
||||
min-width: 250px;
|
||||
position: fixed;
|
||||
z-index: 120;
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
border: 1px solid color-mix(in srgb, var(--v2-accent) 18%, #e6eceb);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 16px 38px rgba(28, 61, 62, 0.2);
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field > .field-label {
|
||||
margin: 0 0 8px;
|
||||
color: #263b3d;
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-segmented {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 5px;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 42px;
|
||||
display: grid;
|
||||
grid-template-columns: 24px minmax(0, 1fr) 18px;
|
||||
align-items: center;
|
||||
justify-content: initial;
|
||||
gap: 8px;
|
||||
padding: 6px 9px;
|
||||
color: #536466;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 9px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option:hover {
|
||||
color: var(--v2-accent-strong);
|
||||
background: color-mix(in srgb, var(--v2-accent-soft) 38%, white);
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option.active {
|
||||
color: var(--v2-accent-strong);
|
||||
background: color-mix(in srgb, var(--v2-accent-soft) 58%, white);
|
||||
border-color: color-mix(in srgb, var(--v2-accent) 16%, transparent);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > svg:first-child {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > span {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > span > strong,
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > span > small {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > span > strong {
|
||||
color: inherit;
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > span > small {
|
||||
color: #899697;
|
||||
font-size: 8px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option > .reasoning-check {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
display: block;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field .reasoning-option.active > .reasoning-check {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-field > .provider-note {
|
||||
min-height: 0;
|
||||
margin: 8px 2px 0;
|
||||
color: #829091;
|
||||
font-size: 8px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.console-v2 .v2-request-form .command-composer {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.console-v2 .v2-request-form #utterance {
|
||||
padding-bottom: 42px;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger {
|
||||
max-width: 180px;
|
||||
min-height: 26px;
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
bottom: 9px;
|
||||
z-index: 12;
|
||||
display: inline-grid;
|
||||
grid-template-columns: 14px auto auto 12px;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 0 9px;
|
||||
color: #526264;
|
||||
background: rgba(241, 244, 243, 0.96);
|
||||
border: 1px solid rgba(98, 127, 126, 0.11);
|
||||
border-radius: 999px;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger:hover,
|
||||
.console-v2 .v2-reasoning-trigger.open {
|
||||
color: var(--v2-accent-strong);
|
||||
background: color-mix(in srgb, var(--v2-accent-soft) 52%, white);
|
||||
border-color: color-mix(in srgb, var(--v2-accent) 18%, transparent);
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger.unavailable {
|
||||
opacity: 0.62;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger > svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger > strong {
|
||||
color: var(--v2-accent-strong);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger > .v2-reasoning-caret {
|
||||
transition: transform 150ms ease;
|
||||
}
|
||||
|
||||
.console-v2 .v2-reasoning-trigger.open > .v2-reasoning-caret {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.console-v2 .v2-request-form .composer-hint {
|
||||
max-width: 150px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-height: 820px) {
|
||||
.console-v2 .v2-reasoning-trigger {
|
||||
bottom: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user