fix(dns-hole-summary): restore colors and fit compact cards (#7045)

Related to #7020 and #7018. Restore DNS summary colors, fit compact cards, and match preview text scaling.
This commit is contained in:
Thomas authored and GitHub committed 2026-10-07 10:00:24 +02:00
1 parent d1c88b6821
commit 3f02da7b59
6 files changed
+76 -34

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export const calculateBoardUiScale = (canvasScale: number) => {
if (!Number.isFinite(canvasScale) || canvasScale <= 0) return 1;
if (canvasScale < 1) return 1 / canvasScale;
return 1;
};