mirror of
https://github.com/detleph/components.git
synced 2026-09-07 23:44:12 +02:00
Small fixes for the drawer
This commit is contained in:
@@ -8,10 +8,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#detleph-fg-context {
|
#detleph-fg-context {
|
||||||
width: 100%;
|
position: absolute;
|
||||||
height: 100%;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ const UIDrawer: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
|||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
className={styles.drawer}
|
className={styles.drawer}
|
||||||
initial={{ y: "100vh" }}
|
initial={{ y: "100%" }}
|
||||||
animate={{ y: "0%" }}
|
animate={{ y: "0%" }}
|
||||||
exit={{ y: "100vh" }}
|
exit={{ y: "100%" }}
|
||||||
transition={{ type: "tween" }}
|
transition={{ type: "tween" }}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user