Fix animation transition on fullscreen player open

This commit is contained in:
jeffvli 2023-06-06 00:18:23 -07:00 committed by Jeff
parent 8835fc640a
commit 2bdc664619
2 changed files with 5 additions and 4 deletions

View file

@ -19,6 +19,9 @@ import { TableConfigDropdown } from '/@/renderer/components/virtual-table';
import { Platform } from '/@/renderer/types';
const Container = styled(motion.div)`
position: absolute;
top: 0;
left: 0;
z-index: 200;
display: flex;
justify-content: center;
@ -187,6 +190,7 @@ export const FullScreenPlayer = () => {
custom={{ background, dynamicBackground, windowBarStyle }}
exit="closed"
initial="closed"
transition={{ duration: 2 }}
variants={containerVariants}
>
<Controls />

View file

@ -7,10 +7,7 @@ export const FullScreenOverlay = () => {
return (
<>
<AnimatePresence
initial={false}
mode="wait"
>
<AnimatePresence initial={false}>
{isFullScreenPlayerExpanded && <FullScreenPlayer />}
</AnimatePresence>
</>