mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
style: move icons on timeline toolbar
This commit is contained in:
@@ -835,12 +835,25 @@ function PreviewToolbar({
|
|||||||
className="flex justify-end gap-2 h-auto pb-5 pr-5 pt-4 w-full"
|
className="flex justify-end gap-2 h-auto pb-5 pr-5 pt-4 w-full"
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
<Button
|
||||||
|
variant="text"
|
||||||
|
size="icon"
|
||||||
|
onClick={toggle}
|
||||||
|
disabled={!hasAnyElements}
|
||||||
|
className="h-auto p-0"
|
||||||
|
>
|
||||||
|
{isPlaying ? (
|
||||||
|
<Pause className="h-3 w-3" />
|
||||||
|
) : (
|
||||||
|
<Play className="h-3 w-3" />
|
||||||
|
)}
|
||||||
|
</Button>
|
||||||
<Popover>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
variant="text"
|
variant="text"
|
||||||
size="icon"
|
size="icon"
|
||||||
className="h-auto p-0"
|
className="h-auto p-0 mr-1"
|
||||||
title="Toggle layout guide"
|
title="Toggle layout guide"
|
||||||
>
|
>
|
||||||
<SocialsIcon className="!size-6" />
|
<SocialsIcon className="!size-6" />
|
||||||
@@ -883,19 +896,6 @@ function PreviewToolbar({
|
|||||||
</div>
|
</div>
|
||||||
</PopoverContent>
|
</PopoverContent>
|
||||||
</Popover>
|
</Popover>
|
||||||
<Button
|
|
||||||
variant="text"
|
|
||||||
size="icon"
|
|
||||||
onClick={toggle}
|
|
||||||
disabled={!hasAnyElements}
|
|
||||||
className="h-auto p-0"
|
|
||||||
>
|
|
||||||
{isPlaying ? (
|
|
||||||
<Pause className="h-3 w-3" />
|
|
||||||
) : (
|
|
||||||
<Play className="h-3 w-3" />
|
|
||||||
)}
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
variant="text"
|
variant="text"
|
||||||
size="icon"
|
size="icon"
|
||||||
|
|||||||
Reference in New Issue
Block a user