From e48d1a5f57ece287fbf41a9098e1892908dcc744 Mon Sep 17 00:00:00 2001 From: DecentM Date: Sat, 7 Oct 2023 09:17:59 +0300 Subject: [PATCH] fix(frontend): make selection show up on even numbered ranks too --- apps/frontend/src/components/board/layers/indicators-layer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/components/board/layers/indicators-layer.vue b/apps/frontend/src/components/board/layers/indicators-layer.vue index 651989c..477667d 100644 --- a/apps/frontend/src/components/board/layers/indicators-layer.vue +++ b/apps/frontend/src/components/board/layers/indicators-layer.vue @@ -187,7 +187,7 @@ const getCoords = (index: number) => { :key="index" class="indicator-square move-placeholder" :class="{ - even: index % 2 !== 0, + even: (getCoords(index).file + getCoords(index).rank) % 2 !== 0, focus: coordinatesEqual(pieceFocus, getCoords(index)), show: show(getCoords(index)), capture: !coordsEmpty(getCoords(index)),