mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
track gap fix and mute button icon size change
This commit is contained in:
1 parent
141bb0c417
commit
26d5cc7ef3
5 files changed
+8
-8
No files matched your search
@@ -15,7 +15,7 @@ export const Audio = () => {
|
||||
<div className="prevent-select mb-5 pt-2 text-xs font-medium text-white">
|
||||
Global Audio
|
||||
</div>
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex flex-col gap-4">
|
||||
<Track
|
||||
clips={clips}
|
||||
title="Global Audio Track"
|
||||
|
||||
@@ -12,7 +12,7 @@ export const Camera = () => {
|
||||
style={{ width: fullWidth + 90 }}
|
||||
>
|
||||
<div className="mb-5 pt-2 text-xs font-medium text-white">Camera</div>
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex flex-col gap-4">
|
||||
<Track
|
||||
clips={clips}
|
||||
title="Camera Position/Rotation"
|
||||
|
||||
@@ -61,7 +61,7 @@ export const Character = ({ characterId }: Props) => {
|
||||
<div className="prevent-select mb-5 pt-2 text-xs font-medium text-white">
|
||||
Character
|
||||
</div>
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex flex-col gap-4">
|
||||
<Track
|
||||
clips={animationClips}
|
||||
title="Animation"
|
||||
|
||||
@@ -14,7 +14,7 @@ export const Objects = () => {
|
||||
Objects
|
||||
</div>
|
||||
{objects.objects.map((object) => (
|
||||
<div key={object.id} className="flex flex-col gap-2">
|
||||
<div key={object.id} className="flex flex-col gap-4">
|
||||
<Track
|
||||
clips={object.clips}
|
||||
title="Mask Position/Rotation"
|
||||
|
||||
@@ -43,7 +43,7 @@ export const Track = ({
|
||||
return (
|
||||
<div className="pl-16">
|
||||
<div
|
||||
className={`rounded=lg relative mt-4 block h-9 w-full bg-${style}-unselected`}
|
||||
className={`relative mt-4 block h-9 w-full rounded-lg bg-${style}-unselected`}
|
||||
onPointerOver={onPointerOver}
|
||||
onPointerLeave={onPointerLeave}
|
||||
>
|
||||
@@ -66,14 +66,14 @@ export const Track = ({
|
||||
</div>
|
||||
{!!toggleMute && (
|
||||
<button
|
||||
className="absolute text-xs text-white"
|
||||
style={{ top: 6, left: -20 }}
|
||||
className="text-md absolute text-white transition-colors duration-100 hover:text-white/80"
|
||||
style={{ top: 6, left: -28 }}
|
||||
onClick={toggleMute}
|
||||
>
|
||||
{muted ? (
|
||||
<FontAwesomeIcon
|
||||
icon={faVolumeSlash}
|
||||
className="text-brand-primary"
|
||||
className="text-brand-primary transition-colors duration-100 hover:text-brand-primary/80"
|
||||
/>
|
||||
) : (
|
||||
<FontAwesomeIcon icon={faVolume} />
|
||||
|
||||
Reference in new issue
Block a user