Merge branch 'Fix_minimap' into main

This commit is contained in:
Coen
2021-04-15 16:26:30 +02:00
+1 -1
View File
@@ -64,7 +64,7 @@ const MiniMap = ({
const y = boundingRect.y - (viewHeight - boundingRect.height) / 2 - offset; const y = boundingRect.y - (viewHeight - boundingRect.height) / 2 - offset;
const width = viewWidth + offset * 2; const width = viewWidth + offset * 2;
const height = viewHeight + offset * 2; const height = viewHeight + offset * 2;
const shapeRendering = !!window.chrome ? "crispEdges" : "geometricPrecision"; const shapeRendering = (typeof window === "undefined" || !!window.chrome) ? "crispEdges" : "geometricPrecision";
return ( return (
<svg <svg