Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Scale blurriness fix (#1887)

Oleg Isonenda1e8eaef32a
diff --git a/apps/builder/app/builder/features/workspace/workspace.tsx b/apps/builder/app/builder/features/workspace/workspace.tsx
index 3f57671a4c..70a3486713 100644
--- a/apps/builder/app/builder/features/workspace/workspace.tsx
+++ b/apps/builder/app/builder/features/workspace/workspace.tsx
@@ -58,7 +58,17 @@ const getCanvasStyle = (
width: canvasWidth,
height: canvasHeight ?? "100%",
left: "50%",
- transform: `scale(${scale}%) translateX(-50%)`,
+ // Chrome on Windows has a bug and makes everything slightly blurry if scale(1) is used together with translateX.
+ // We have done a lot of comparisons between various fixes and they were producing slightly different sharpness,
+ // using scale 0.9999 with opacity 0.9999 works best.
+ // User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
+ // Edition Windows 11 Home
+ // Version 22H2
+ // Installed on ‎10/‎18/‎2022
+ // OS build 22621.1848
+ // Experience Windows Feature Experience Pack 1000.22642.1000.0
+ transform: `scale(${scale === 1 ? 0.9999 : scale}%) translateX(-50%)`,
+ opacity: 0.9999,
};
};