Fix animation transition on fullscreen player open
This commit is contained in:
parent
8835fc640a
commit
2bdc664619
2 changed files with 5 additions and 4 deletions
|
@ -19,6 +19,9 @@ import { TableConfigDropdown } from '/@/renderer/components/virtual-table';
|
||||||
import { Platform } from '/@/renderer/types';
|
import { Platform } from '/@/renderer/types';
|
||||||
|
|
||||||
const Container = styled(motion.div)`
|
const Container = styled(motion.div)`
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -187,6 +190,7 @@ export const FullScreenPlayer = () => {
|
||||||
custom={{ background, dynamicBackground, windowBarStyle }}
|
custom={{ background, dynamicBackground, windowBarStyle }}
|
||||||
exit="closed"
|
exit="closed"
|
||||||
initial="closed"
|
initial="closed"
|
||||||
|
transition={{ duration: 2 }}
|
||||||
variants={containerVariants}
|
variants={containerVariants}
|
||||||
>
|
>
|
||||||
<Controls />
|
<Controls />
|
||||||
|
|
|
@ -7,10 +7,7 @@ export const FullScreenOverlay = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<AnimatePresence
|
<AnimatePresence initial={false}>
|
||||||
initial={false}
|
|
||||||
mode="wait"
|
|
||||||
>
|
|
||||||
{isFullScreenPlayerExpanded && <FullScreenPlayer />}
|
{isFullScreenPlayerExpanded && <FullScreenPlayer />}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
</>
|
</>
|
||||||
|
|
Reference in a new issue