Fix: unwanted seperator when there is a clip on track.

This commit is contained in:
creotove
2025-06-25 08:51:17 +05:30
parent 84d206c01e
commit 7de09adce6

View File

@ -603,15 +603,15 @@ export function Timeline() {
{/* Time Display */} {/* Time Display */}
<div className="text-xs text-muted-foreground font-mono px-2" <div className="text-xs text-muted-foreground font-mono px-2"
style={{ minWidth: '12ch', textAlign: 'right' }} style={{ minWidth: '18ch', textAlign: 'center' }}
> >
{currentTime.toFixed(1)}s / {duration.toFixed(1)}s {currentTime.toFixed(1)}s / {duration.toFixed(1)}s
</div> </div>
<div className="w-px h-6 bg-border mx-1" />
{/* Test Clip Button - for debugging */} {/* Test Clip Button - for debugging */}
{tracks.length === 0 && ( {tracks.length === 0 && (
<>
<div className="w-px h-6 bg-border mx-1" />
<Tooltip> <Tooltip>
<TooltipTrigger asChild> <TooltipTrigger asChild>
<Button <Button
@ -635,6 +635,7 @@ export function Timeline() {
</TooltipTrigger> </TooltipTrigger>
<TooltipContent>Add a test clip to try playback</TooltipContent> <TooltipContent>Add a test clip to try playback</TooltipContent>
</Tooltip> </Tooltip>
</>
)} )}
<div className="w-px h-6 bg-border mx-1" /> <div className="w-px h-6 bg-border mx-1" />