small change

This commit is contained in:
Maze Winther
2025-07-12 11:52:54 +02:00
parent 2de4c7c153
commit 0726c27221
3 changed files with 11 additions and 6 deletions

View File

@ -40,9 +40,9 @@ export function BackgroundSettings() {
<Button <Button
variant="text" variant="text"
size="icon" size="icon"
className="!size-5 border border-muted-foreground" className="!size-4 border border-muted-foreground"
> >
<BackgroundIcon className="!size-4" /> <BackgroundIcon className="!size-3" />
</Button> </Button>
</PopoverTrigger> </PopoverTrigger>
<PopoverContent className="flex flex-col items-start w-[20rem] h-[16rem] overflow-hidden p-0"> <PopoverContent className="flex flex-col items-start w-[20rem] h-[16rem] overflow-hidden p-0">

View File

@ -16,7 +16,7 @@ import {
DropdownMenuTrigger, DropdownMenuTrigger,
DropdownMenuSeparator, DropdownMenuSeparator,
} from "@/components/ui/dropdown-menu"; } from "@/components/ui/dropdown-menu";
import { Play, Pause } from "lucide-react"; import { Play, Pause, Expand } from "lucide-react";
import { useState, useRef, useEffect } from "react"; import { useState, useRef, useEffect } from "react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { formatTimeCode } from "@/lib/time"; import { formatTimeCode } from "@/lib/time";
@ -447,7 +447,7 @@ function PreviewToolbar({ hasAnyElements }: { hasAnyElements: boolean }) {
<DropdownMenuTrigger asChild> <DropdownMenuTrigger asChild>
<Button <Button
size="sm" size="sm"
className="!bg-panel-accent text-foreground/85 text-[0.75rem] h-auto rounded-none border border-muted-foreground px-0.5 py-0 font-light" className="!bg-panel-accent text-foreground/85 text-[0.70rem] h-4 rounded-none border border-muted-foreground px-0.5 py-0 font-light"
disabled={!hasAnyElements} disabled={!hasAnyElements}
> >
{getDisplayName()} {getDisplayName()}
@ -475,6 +475,13 @@ function PreviewToolbar({ hasAnyElements }: { hasAnyElements: boolean }) {
))} ))}
</DropdownMenuContent> </DropdownMenuContent>
</DropdownMenu> </DropdownMenu>
<Button
variant="text"
size="icon"
className="!size-4 text-muted-foreground"
>
<Expand className="!size-4" />
</Button>
</div> </div>
</div> </div>
); );

View File

@ -88,8 +88,6 @@ export function Timeline() {
setDuration, setDuration,
isPlaying, isPlaying,
toggle, toggle,
setSpeed,
speed,
} = usePlaybackStore(); } = usePlaybackStore();
const [isDragOver, setIsDragOver] = useState(false); const [isDragOver, setIsDragOver] = useState(false);
const [isProcessing, setIsProcessing] = useState(false); const [isProcessing, setIsProcessing] = useState(false);