Add rounded model-vote baseline to probability distribution

This commit is contained in:
2569718930@qq.com
2026-04-17 00:48:12 +08:00
parent 19169e4bdb
commit c346fae351
2 changed files with 233 additions and 7 deletions
@@ -1001,6 +1001,87 @@
border: 1px solid rgba(251, 113, 133, 0.26);
}
.root :global(.prob-model-vote) {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 8px;
padding: 10px;
border: 1px solid rgba(148, 163, 184, 0.14);
border-radius: 8px;
background: rgba(15, 23, 42, 0.34);
}
.root :global(.prob-model-vote-head) {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.root :global(.prob-model-vote-head span) {
color: var(--text-primary);
font-size: 12px;
font-weight: 800;
}
.root :global(.prob-model-vote-head em) {
color: var(--text-muted);
font-size: 11px;
font-style: normal;
}
.root :global(.prob-model-vote-grid) {
display: grid;
gap: 6px;
}
.root :global(.prob-model-vote-row) {
display: grid;
grid-template-columns: 64px minmax(0, 1fr);
align-items: center;
gap: 8px;
}
.root :global(.prob-model-vote-row > span) {
color: var(--text-primary);
font-size: 12px;
font-weight: 800;
text-align: right;
}
.root :global(.prob-model-vote-track) {
position: relative;
height: 18px;
overflow: hidden;
border-radius: 6px;
background: rgba(148, 163, 184, 0.1);
}
.root :global(.prob-model-vote-fill) {
height: 100%;
border-radius: 6px;
background: linear-gradient(90deg, rgba(20, 184, 166, 0.62), rgba(34, 211, 238, 0.88));
}
.root :global(.prob-model-vote-track strong) {
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
color: var(--text-primary);
font-size: 11px;
line-height: 1;
text-shadow: 0 1px 2px rgba(2, 6, 23, 0.85);
}
.root :global(.prob-model-vote p) {
margin: 0;
color: var(--text-muted);
font-size: 11px;
line-height: 1.45;
}
/* ── Model Bars ── */
.root :global(.model-bars) {
display: flex;
@@ -1125,13 +1206,6 @@
border-radius: 6px;
background: linear-gradient(90deg, rgba(14, 165, 233, 0.72), rgba(34, 211, 238, 0.92));
transition: width 0.6s ease-out;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 8px;
font-size: 11px;
font-weight: 600;
color: white;
}
.root :global(.model-bar-fill.deb) {
@@ -1139,6 +1213,28 @@
box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}
.root :global(.model-bar-value) {
position: absolute;
top: 50%;
right: 8px;
z-index: 3;
transform: translateY(-50%);
color: var(--text-primary);
font-size: 11px;
font-weight: 800;
line-height: 1;
max-width: calc(100% - 12px);
overflow: visible;
pointer-events: none;
text-align: right;
text-shadow: 0 1px 2px rgba(2, 6, 23, 0.9);
white-space: nowrap;
}
.root :global(.model-bar-value.deb) {
color: #ecfeff;
}
.root :global(.model-deb-line) {
position: absolute;
top: 0;