summaryrefslogtreecommitdiff
path: root/public/styles.css
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 07:02:13 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 07:02:13 +0800
commite8eebe49407de8947bf509d5cf04d9080ee4edf7 (patch)
treecd7d5b1b2cb2efca2e19786041e49aa4b5e5b72e /public/styles.css
parent13479cd194cd992c67805093e59f8b1dd1b5f3a2 (diff)
downloadsomhairles-dream-fsharp-e8eebe49407de8947bf509d5cf04d9080ee4edf7.tar.gz
Real historical replay: timeline pins load run's own checkpoint GLBs
- renderTimeline rebuilds #timeline-track after each snapshot and wires click-to-pin on completed checkpoints (kept placeholder nodes otherwise) - selection loads the pinned run's own steps/<n>-*.glb (generation/ ownership guards apply), pins survive live snapshots, 跟随最新 restores live scope, replay pauses/scrubs through 已完成 versions - placeholder fallback now clearly labeled (占位…) only before any run - acceptance: historical_replay_regression (9 checks) pins mid-run, asserts no auto-follow strays, late-older-response precedence, served checkpoint sha256 vs CLI reference, and viewport geometry change - fix: timeline-track id missing in index.html crashed renderTimeline (null firstChild), leaving static placeholder nodes non-clickable - driver: 71/71 checks, zero console/page errors
Diffstat (limited to 'public/styles.css')
-rw-r--r--public/styles.css30
1 files changed, 30 insertions, 0 deletions
diff --git a/public/styles.css b/public/styles.css
index 6346df5..a925e58 100644
--- a/public/styles.css
+++ b/public/styles.css
@@ -540,6 +540,31 @@ button:focus-visible {
background: var(--gold);
}
+.timeline-step-real {
+ cursor: pointer;
+}
+
+.timeline-step-real:hover .timeline-version {
+ color: var(--ivory);
+}
+
+.timeline-step-active .timeline-dot {
+ border-color: var(--ivory);
+ box-shadow: 0 0 0 3px rgba(215, 169, 72, 0.35);
+}
+
+#follow-button[disabled] {
+ border-color: var(--line-bright);
+ color: var(--muted);
+ cursor: default;
+ opacity: 0.45;
+}
+
+#follow-button[disabled]:hover {
+ background: transparent;
+ color: var(--muted);
+}
+
.timeline-version {
color: var(--gold-soft);
font-size: 0.68rem;
@@ -557,6 +582,11 @@ button:focus-visible {
font-size: 0.68rem;
}
+.timeline-actions {
+ display: flex;
+ gap: 10px;
+}
+
.replay-button {
min-height: 44px;
padding: 8px 16px;