Compare commits

..

1 Commits

Author SHA1 Message Date
review-agent-prime[bot]
3a642bfdd0 Edit apps/web/app/(app)/environments/[environmentId]/surveys/components/Modal.tsx 2024-03-04 16:40:16 +00:00
2 changed files with 9 additions and 9 deletions

View File

@@ -58,19 +58,19 @@ export default function Modal({
};
};
const scalingClasses = calculateScaling();
useEffect(() => {
const handleResize = () => setWindowWidth(window.innerWidth);
window.addEventListener("resize", handleResize);
return () => window.removeEventListener("resize", handleResize);
}, []);
const scalingClasses = useMemo(() => calculateScaling(), [windowWidth, previewMode]);
const highlightBorderColorStyle = useMemo(() => {
if (!highlightBorderColor)
return {
overflow: "auto",
};
return {
border: `2px solid ${highlightBorderColor}`,
overflow: "auto",
};
}, [highlightBorderColor]);
return {
border: `2px solid ${highlightBorderColor}`,

View File

@@ -32,7 +32,7 @@ module.exports = {
"close-button-focus": "var(--fb-close-btn-hover-color)",
},
borderRadius: {
fbBorderRadius: "var(--fb-border-radius)",
custom: "var(--fb-border-radius)",
},
zIndex: {
999999: "999999",