diff --git a/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx b/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx index 2c2b58074..b829d4eab 100644 --- a/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx +++ b/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx @@ -149,6 +149,7 @@ const Wrapper: FC<{ return (
+ - {isArray ? renderedChildren[0] : renderedChildren}
{hasSideContent ? ( @@ -188,6 +188,11 @@ const Wrapper: FC<{ ) } +const headerActionsVariants = { + initial: { opacity: 0, translateY: "-20px" }, + animate: { opacity: 1, translateY: "0px" }, + exit: { opacity: 0, translateY: "-20px" }, +} const GLASS_BUTTON_CLASS = tw`group-hover/left:opacity-100 opacity-0` const HeaderActions: FC<{ src: string @@ -196,7 +201,14 @@ const HeaderActions: FC<{ const { dismiss } = useCurrentModal() return ( -
+ -
+ ) }