From 9148b5d2790321bd3508b7c27d05913bf7bcfa84 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Mon, 14 Oct 2024 06:44:09 -0600 Subject: [PATCH] Fix SVG hoshi points being too small on mobile --- src/Goban/SVGRenderer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Goban/SVGRenderer.ts b/src/Goban/SVGRenderer.ts index ec1dd234..71118156 100644 --- a/src/Goban/SVGRenderer.ts +++ b/src/Goban/SVGRenderer.ts @@ -3646,7 +3646,8 @@ export class SVGRenderer extends Goban implements GobanSVGInterface { } if (hoshi) { - const r = this.square_size * 0.075; + const r = this.square_size < 5 ? 0.5 : Math.max(2, this.square_size * 0.075); + for (let i = 0; i < hoshi.length; ++i) { const [hx, hy] = hoshi[i]; const circle = document.createElementNS("http://www.w3.org/2000/svg", "circle");