feat(ui): thinking timer replaces pv text

Compact 'agent_name думает m:ss' indicator with a pulsing dot, tabular
nums, lives in the same slot the stockfish PV used to occupy. Resets on
new_game (white starts thinking), flips to the opponent on every move,
clears on game_over / when scrubbing history. Tickers tick 1 Hz.
Drops the now-unused PV stringification in applyEvalForFen.
This commit is contained in:
ai-chess
2026-05-15 00:52:40 +03:00
parent e7c04a3d76
commit 21dd169dfa
3 changed files with 83 additions and 7 deletions
+29 -1
View File
@@ -48,7 +48,35 @@ body {
font-size: 12.5px;
}
#status-line { flex: 0 0 auto; opacity: 0.85; }
#sf-pv { flex: 1; opacity: 0.5; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#think-meter {
flex: 1;
font-size: 12px;
opacity: 0.75;
display: inline-flex;
align-items: baseline;
gap: 4px;
letter-spacing: 0.01em;
}
.think-dot {
display: inline-block;
width: 6px; height: 6px;
border-radius: 50%;
background: #c0a060;
animation: think-pulse 1.4s ease-in-out infinite;
align-self: center;
margin-right: 4px;
}
.think-who { color: #d8d4c8; font-weight: 600; }
.think-time {
font-variant-numeric: tabular-nums;
color: #f0d090;
font-weight: 600;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@keyframes think-pulse {
0%, 100% { opacity: 0.3; transform: scale(0.9); }
50% { opacity: 1; transform: scale(1.1); }
}
/* ============ eval bar ============ */
#eval-col {