fix(race-story): sync chapter highlight and empty-state E2E (#68)

Clamp active-chapter detection to the same scrub bounds as chapter clicks,
keep an explicit selection on click for out-of-window timestamps, point E2E
at the empty-state card, and move Race Story empty-state styles out of app.css.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-12 13:40:21 -04:00
parent 02a84f67b4
commit 1dac73cdc5
11 changed files with 156 additions and 28 deletions

View File

@@ -520,17 +520,6 @@ a { color: inherit; text-decoration: none; }
color: var(--text-3);
}
.empty-state-icon {
display: block;
margin: 0 auto var(--s3);
color: var(--text-3);
}
.race-story-empty-card {
padding: var(--s6) var(--s5);
margin: 0;
}
.loading-state {
padding: var(--s7) 0;
text-align: center;

View File

@@ -196,6 +196,7 @@
}
.chapter-strip-empty-card .empty-state-icon {
display: block;
margin: 0 auto var(--s3);
color: var(--text-3);
}

View File

@@ -1,3 +1,14 @@
.race-story-empty-card {
padding: var(--s6) var(--s5);
margin: 0;
}
.race-story-empty-card .empty-state-icon {
display: block;
margin: 0 auto var(--s3);
color: var(--text-3);
}
.rs-replay-shell {
display: grid;
grid-template-columns: 1fr;

View File

@@ -85,6 +85,7 @@
}
.replay-map-empty-card .empty-state-icon {
display: block;
margin: 0 auto var(--s3);
color: var(--text-3);
}