fix: marker template was overriding the red default with --accent

The inline style wrote --marker-color: var(--accent) whenever
marker.color wasn't set, which shadowed the CSS default. Only emit
the inline override when a per-marker color is explicitly set so the
stylesheet's red (#ef4444) actually applies.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
thandClaude Opus 4.7 committed 2026-04-20 22:16:29 +02:00
1 parent 28e6e5bcfc
commit fe1a7f9b3b
1 file changed
+1 -1
+1 -1
View File
@@ -2001,7 +2001,7 @@ onBeforeUnmount(() => {
:class="{ selected: selectedMarkerId === marker.id }" :class="{ selected: selectedMarkerId === marker.id }"
:style="{ :style="{
left: pxFromTime(marker.time) + 'px', left: pxFromTime(marker.time) + 'px',
'--marker-color': marker.color || 'var(--accent)', ...(marker.color ? { '--marker-color': marker.color } : {}),
}" }"
:title="marker.name" :title="marker.name"
@pointerdown="onMarkerPointerDown($event, marker.id)" @pointerdown="onMarkerPointerDown($event, marker.id)"