mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
Edit apps/web/app/(app)/environments/[environmentId]/surveys/components/Modal.tsx
This commit is contained in:
committed by
GitHub
parent
7a1af85141
commit
0de0ca7edf
@@ -41,20 +41,20 @@ export default function Modal({
|
||||
}
|
||||
|
||||
let placementClass = "";
|
||||
|
||||
if (placement === "bottomLeft") {
|
||||
placementClass = "bottom left";
|
||||
} else if (placement === "bottomRight") {
|
||||
placementClass = "bottom right";
|
||||
} else if (placement === "topLeft") {
|
||||
placementClass = "top left";
|
||||
} else if (placement === "topRight") {
|
||||
placementClass = "top right";
|
||||
}
|
||||
|
||||
return {
|
||||
transform: `scale(${scaleValue})`,
|
||||
transformOrigin: placementClass,
|
||||
switch (placement) {
|
||||
case "bottomLeft":
|
||||
placementClass = "bottom left";
|
||||
break;
|
||||
case "bottomRight":
|
||||
placementClass = "bottom right";
|
||||
break;
|
||||
case "topLeft":
|
||||
placementClass = "top left";
|
||||
break;
|
||||
case "topRight":
|
||||
placementClass = "top right";
|
||||
break;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user