style: timestamp

This commit is contained in:
Maze Winther
2025-07-10 19:56:54 +02:00
parent 4d0c3268cc
commit 44f504f401

View File

@ -306,12 +306,15 @@ function PreviewToolbar({ hasAnyElements }: { hasAnyElements: boolean }) {
<div>
<p
className={cn(
"text-xs text-muted-foreground tabular-nums",
"text-[0.75rem] text-muted-foreground tabular-num flex items-center gap-1",
!hasAnyElements && "opacity-50"
)}
>
{formatTimeCode(currentTime, "HH:MM:SS:CS")}/
{formatTimeCode(getTotalDuration(), "HH:MM:SS:CS")}
<span className="text-primary">
{formatTimeCode(currentTime, "HH:MM:SS:CS")}
</span>
<span className="opacity-50">/</span>
<span>{formatTimeCode(getTotalDuration(), "HH:MM:SS:CS")}</span>
</p>
</div>
<Button