optimization and some fixes

This commit is contained in:
2026-04-26 11:55:12 +07:00
parent 166d0e7f08
commit 5bb5c4e75e
3 changed files with 48 additions and 12 deletions
+1 -3
View File
@@ -61,9 +61,7 @@ export const NetrunnerMatrix: React.FC<NetrunnerMatrixProps> = ({
};
const isMobile = checkIsMobile();
const pixelScale = isMobile
? 1.0
: Math.min(window.devicePixelRatio || 1, 1.5);
const pixelScale = Math.min(window.devicePixelRatio || 1, 1.5);
const initialWidth = container.clientWidth * pixelScale;
const initialHeight = container.clientHeight * pixelScale;