Skip to content

Commit cf6bd78

Browse files
authored
Merge pull request #11 from SupShadow/claude/fix-playlist-overlay-01V8XnoCBo6HPX3EQSiZjcDN
Fix playlist overlay and smooth close animation
2 parents ed08ba6 + eed1685 commit cf6bd78

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

components/TrackList.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ export default function TrackList({ isOpen, onClose, currentTrack, onSelect, isP
2323
<AnimatePresence>
2424
{isOpen && (
2525
<motion.div
26-
initial={{ y: "100%" }}
27-
animate={{ y: 0 }}
28-
exit={{ y: "100%" }}
29-
transition={{ type: "spring", damping: 25, stiffness: 200 }}
30-
className="fixed bottom-16 left-0 right-0 bg-void-deep/95 border-t-2 border-signal z-[55] shadow-[0_-10px_40px_rgba(255,69,0,0.2)] backdrop-blur-xl max-h-[60vh] overflow-hidden flex flex-col"
26+
initial={{ y: "100%", opacity: 0.8 }}
27+
animate={{ y: 0, opacity: 1 }}
28+
exit={{ y: "100%", opacity: 0 }}
29+
transition={{
30+
type: "tween",
31+
duration: 0.25,
32+
ease: [0.4, 0, 0.2, 1]
33+
}}
34+
className="fixed bottom-[72px] md:bottom-[100px] left-0 right-0 bg-void-deep/95 border-t-2 border-signal z-[45] shadow-[0_-10px_40px_rgba(255,69,0,0.2)] backdrop-blur-xl max-h-[50vh] md:max-h-[60vh] overflow-hidden flex flex-col"
3135
id="track-list-panel"
3236
role="dialog"
3337
aria-label="Track list"

0 commit comments

Comments
 (0)