mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-13 01:59:39 -06:00
fix: avoid scaling on mobile preview (#1868)
This commit is contained in:
committed by
GitHub
parent
c376b12461
commit
1d7d07b3c6
@@ -21,6 +21,7 @@ export default function Modal({
|
||||
const modalRef = useRef<HTMLDivElement | null>(null);
|
||||
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
|
||||
const calculateScaling = () => {
|
||||
if (previewMode === "mobile") return "";
|
||||
const scaleValue = (() => {
|
||||
if (windowWidth > 1600) return "1";
|
||||
else if (windowWidth > 1200) return ".9";
|
||||
|
||||
Reference in New Issue
Block a user