chore(SW-96): cleanup css

This commit is contained in:
Chuma McPhoy
2024-08-20 11:58:01 +02:00
parent 442f8b6580
commit 24e6b5fffe
2 changed files with 5 additions and 7 deletions

View File

@@ -3,7 +3,6 @@
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 1090px;
height: 725px;
overflow: hidden;

View File

@@ -76,18 +76,17 @@ export function DesktopLightbox({ images, children }: DesktopLightboxProps) {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
className={styles.overlay}
/>
</Dialog.Overlay>
<Dialog.Content className={styles.content}>
<Dialog.Content asChild>
<motion.div
className={styles.content}
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
animate={{ opacity: 1, scale: 1, x: "-50%", y: "-50%" }}
exit={{ opacity: 0, scale: 0.95 }}
style={{
width: "100%",
height: "100%",
}}
transition={{ duration: 0.2 }}
>
{isFullView ? (
<FullView