fix banner widget preview transitions

This commit is contained in:
nflnkr 2024-06-06 20:34:49 +03:00
parent 46227405c1
commit b9a285b1bd
2 changed files with 6 additions and 2 deletions

@ -35,7 +35,9 @@ export default function BannerWidgetPreviewDesktop({
position: "absolute",
width: "calc(196 / 520 * 100%)",
height: "calc(30 / 262 * 100%)",
transition: "all 0.5s ease",
transitionProperty: "width, height, top, left",
transitionDuration: "0.5s",
transitionTimingFunction: "ease",
},
position === "topleft" && {
top: "calc(12.5 / 262 * 100%)",

@ -31,7 +31,9 @@ export default function BannerWidgetPreviewMobile({
position: "absolute",
width: "calc(94 / 520 * 100%)",
height: "calc(21 / 262 * 100%)",
transition: "all 0.5s ease",
transitionProperty: "width, height, top, left",
transitionDuration: "0.5s",
transitionTimingFunction: "ease",
},
position.startsWith("top") && {
top: "calc(66 / 262 * 100%)",