Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-02 12:06:03 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-02 12:14:19 -0700
commit23673cec8e05970f96681eac733285732cf09e1c (patch)
treeb86ce4e40e12d13f7d94d852aa66a4abd5159b8f /src
parent9f7be5d9c782f64948aa244b81a74718c53a02cf (diff)
WIP: edge UI style
Diffstat (limited to 'src')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 07dffa0..efc6784 100644
--- a/src/index.js
+++ b/src/index.js
@@ -92,7 +92,7 @@ function clearMoveEndedIndicators(records) {
function distance(count = '-') {
distanceOutput.querySelector('#hex-count').textContent = count;
- distanceOutput.style.visibility = count === '-' ? 'hidden' : 'visible';
+ distanceOutput.style.display = count === '-' ? 'none' : 'inline';
}
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random#getting_a_random_integer_between_two_values_inclusive