接入 LiveKit 与 TurnSense 评分并改进模型曲线选择
This commit is contained in:
@@ -124,19 +124,7 @@
|
||||
.scoreToggle > span:last-child { color: #929b89; font-size: 10px; }
|
||||
.chevron, .chevronOpen { display: inline-block; width: 12px; font-size: 23px; line-height: 16px; text-align: center; }
|
||||
.chevronOpen { transform: rotate(90deg); }
|
||||
.scoreControls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
|
||||
.modelControl { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #e9e9e2; border-radius: 7px; background: #fafbf7; font-size: 10px; }
|
||||
.modelControl strong { font-weight: 600; }
|
||||
.modelControl output { width: 37px; font-family: monospace; font-variant-numeric: tabular-nums; text-align: center; }
|
||||
.modelControl label { display: flex; align-items: center; gap: 4px; color: #88927e; padding-left: 4px; border-left: 1px solid #e2e5db; }
|
||||
.modelControl select { padding: 1px 0; border: 0; background: transparent; font-size: 10px; color: #637258; cursor: pointer; }
|
||||
.modelVisibility { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
|
||||
.modelSwitch { display: inline-block; position: relative; width: 26px; height: 15px; border-radius: 20px; background: currentColor; }
|
||||
.modelSwitch::after { content: ""; position: absolute; top: 3px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: white; transition: left .15s ease; }
|
||||
.modelVisibility[aria-checked="false"] { color: #92998c; }
|
||||
.modelVisibility[aria-checked="false"] .modelSwitch { background: #c6cbbe; }
|
||||
.modelVisibility[aria-checked="false"] .modelSwitch::after { left: 3px; }
|
||||
.modelControl select:disabled { opacity: .45; cursor: default; }
|
||||
.scoreControls { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
|
||||
.scoreDescription { padding: 0 22px 10px; font-size: 10px; line-height: 1.7; color: #88927f; }
|
||||
.scoreDescription button { border: 0; background: none; color: #536f40; cursor: pointer; text-decoration: underline; font-size: inherit; }
|
||||
.trackNames > .scoreAxis { padding: 12px 8px; flex-direction: column; justify-content: space-between; font-size: 10px; color: #929a87; border-top: 1px solid #e7e9e0; }
|
||||
@@ -150,10 +138,51 @@
|
||||
.scoreInspection b { font-weight: 500; }
|
||||
.scoreEmpty { position: sticky; left: 0; display: grid; place-items: center; color: #929b88; font-size: 11px; background: #fdfefb; border-top: 1px solid #e7e9e0; }
|
||||
.scoreFootnote { margin: 0; padding: 9px 22px 0; color: #8c9583; font-size: 10px; line-height: 1.7; }
|
||||
.scoreToggle:focus-visible, .modelVisibility:focus-visible, .modelControl select:focus-visible { outline: 2px solid #758962; outline-offset: 3px; border-radius: 3px; }
|
||||
.scoreToggle:focus-visible, .modelPickerButton:focus-visible, .legendName:focus-visible { outline: 2px solid #758962; outline-offset: 3px; border-radius: 3px; }
|
||||
@media (max-width: 640px) {
|
||||
.scorePanelHeader { padding-inline: 12px; gap: 5px; }
|
||||
.scoreDescription, .scoreFootnote { padding-inline: 12px; }
|
||||
.scoreControls { gap: 5px; }
|
||||
.modelControl { padding: 4px 5px; }
|
||||
}
|
||||
|
||||
.modelPickerBar { display: flex; align-items: center; gap: 9px; }
|
||||
.modelPickerButton { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #dfe5d7; background: #f8faf3; border-radius: 6px; font: inherit; font-size: 11px; color: #526448; cursor: pointer; white-space: nowrap; }
|
||||
.modelPickerButton > span:first-child { padding: 1px 5px; border-radius: 4px; background: #e9efdf; color: #69775f; font: 10px monospace; }
|
||||
.restoreSelection { border: 0; background: none; color: #647d50; font: inherit; font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
|
||||
.modelLegend { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; min-width: 0; }
|
||||
.legendItem { transition: opacity .12s; }
|
||||
.legendName { display: flex; align-items: center; gap: 5px; border: 0; border-radius: 5px; padding: 5px 2px; background: none; color: inherit; font-size: 10px; cursor: pointer; }
|
||||
.legendName:hover, .legendName[aria-expanded="true"] { background: #f0f3e9; }
|
||||
.legendName output { font: 10px monospace; font-variant-numeric: tabular-nums; min-width: 32px; }
|
||||
.legendMore { color: #9aa18e; font-size: 15px; line-height: 10px; }
|
||||
.modelColor { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
|
||||
.noModels { color: #929b88; font-size: 10px; }
|
||||
.modelPopover { position: fixed; z-index: 100; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 14px; border: 1px solid #dfe4d6; border-radius: 12px; background: #fffefb; box-shadow: 0 12px 40px #33402a26, 0 2px 8px #33402a0d; color: #46563e; font-family: inherit; font-size: 12px; }
|
||||
.popoverHeading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
|
||||
.popoverHeading strong { font-size: 13px; font-weight: 600; }
|
||||
.popoverHeading button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 5px; background: #f4f6ee; font-size: 19px; color: #7c8872; cursor: pointer; }
|
||||
.modelSearch { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid #dfe5d7; border-radius: 7px; color: #526448; background: #fbfcf7; font: inherit; font-size: 12px; }
|
||||
.modelSearch:focus-visible { outline: 2px solid #9aac87; outline-offset: 1px; }
|
||||
.pickerActions { display: flex; align-items: center; gap: 9px; padding: 11px 0 7px; font-size: 10px; color: #8b9580; }
|
||||
.pickerActions > span { margin-right: auto; }
|
||||
.pickerActions button { padding: 2px 0; border: 0; background: none; color: #637e4d; cursor: pointer; font: inherit; }
|
||||
.pickerActions button:disabled { opacity: .4; cursor: default; }
|
||||
.modelOptions { max-height: min(360px, 50vh); overflow-y: auto; scrollbar-width: thin; }
|
||||
.modelOptions fieldset { border: 0; margin: 6px 0 0; padding: 0; min-width: 0; }
|
||||
.modelOptions legend { padding: 5px 0; color: #8c9781; font-size: 10px; }
|
||||
.modelOption { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 6px; cursor: pointer; }
|
||||
.modelOption:hover { background: #f4f7ed; }
|
||||
.modelOption:has(input:disabled) { opacity: .55; cursor: default; }
|
||||
.modelOption input { accent-color: #748c5f; margin: 0; width: 14px; height: 14px; }
|
||||
.modelOption > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
||||
.modelOption strong { font-size: 11px; font-weight: 550; }
|
||||
.modelOption small { font-size: 10px; color: #8c9781; }
|
||||
.pickerHint { margin: 12px 0 0; border-top: 1px solid #ecede5; padding-top: 10px; color: #929b88; font-size: 10px; }
|
||||
.noSearchResults { padding: 18px 0; text-align: center; color: #929b88; }
|
||||
.modelExplanation { margin: 0 0 14px; line-height: 1.8; color: #839175; font-size: 11px; }
|
||||
.thresholdSetting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; color: #66775a; font-size: 11px; }
|
||||
.thresholdSetting select { border: 1px solid #dfe5d7; border-radius: 6px; padding: 6px 8px; background: #f9fbf4; color: #526448; font: inherit; }
|
||||
.modelMenuAction { display: block; width: 100%; padding: 9px 6px; text-align: left; border: 0; border-top: 1px solid #eef0e6; color: #637a50; background: none; cursor: pointer; font: inherit; font-size: 11px; }
|
||||
.modelMenuAction:hover { background: #f4f7ed; }
|
||||
.modelPopover button:focus-visible, .modelPopover select:focus-visible { outline: 2px solid #91a67c; outline-offset: 2px; }
|
||||
@media (prefers-reduced-motion: reduce) { .legendItem { transition: none; } }
|
||||
|
||||
Reference in New Issue
Block a user