Skip to content

Commit

Permalink
fix: player holder size
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 5, 2024
1 parent 529fa6d commit 78cb08c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/renderer/src/modules/feed-column/corner-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ const handleClickPlay = () => {

export const CornerPlayer = () => {
const show = usePlayerAtomSelector((v) => v.show)
const entryId = usePlayerAtomSelector((v) => v.entryId)
const entry = useEntry(entryId)
const feed = useFeedById(entry?.feedId)

return (
<AnimatePresence>
{show && (
{show && entry && feed && (
<m.div
key="corner-player"
className="group relative z-10 !-mt-8 !mb-0 w-full pr-px"
className="group relative z-10 !mb-0 w-full pr-px"
initial={{ y: 50, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: 50, opacity: 0 }}
Expand Down

0 comments on commit 78cb08c

Please sign in to comment.