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.

fix: Blurry canvas on windows (#2607)

Oleg Isonend142c65559a3
diff --git a/apps/builder/app/builder/features/workspace/workspace.tsx b/apps/builder/app/builder/features/workspace/workspace.tsx
index b06937abde..e37e32516c 100644
--- a/apps/builder/app/builder/features/workspace/workspace.tsx
+++ b/apps/builder/app/builder/features/workspace/workspace.tsx
@@ -27,7 +27,6 @@ const workspaceStyle = css({
const canvasContainerStyle = css({
position: "absolute",
- transformStyle: "preserve-3d",
transformOrigin: "0 0",
});
@@ -93,17 +92,7 @@ const getCanvasStyle = (
height: canvasHeight ?? "100%",
maxWidth,
left: "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,
+ transform: `scale(${scale}%) translateX(-50%)`,
};
};