From 6d74c9f7199ea73332e4382bcdc4656719d89910 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Mon, 8 Mar 2021 23:57:42 -0500 Subject: [PATCH] DetailsPanel: Avoid framer-motion style value bug --- src/components/IconGrid/DetailsPanel.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/IconGrid/DetailsPanel.tsx b/src/components/IconGrid/DetailsPanel.tsx index b55f944..16ea647 100644 --- a/src/components/IconGrid/DetailsPanel.tsx +++ b/src/components/IconGrid/DetailsPanel.tsx @@ -20,15 +20,15 @@ const panelVariants = { open: { opacity: 1, height: "100%", - marginTop: 4, - marginBottom: 4, + marginTop: "4px", + marginBottom: "4px", // transition: { stiffness: 600, damping: 32, duration: 0.2 }, }, collapsed: { opacity: 0, - height: 0, - marginTop: 0, - marginBottom: 0, + height: "0px", + marginTop: "0px", + marginBottom: "0px", // transition: { stiffness: 600, damping: 32, duration: 0.2 }, }, };