From 0fb1991b5a74f6127253978c0256429df02176d0 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 9 Dec 2025 11:31:47 -0600 Subject: [PATCH] Remove dot in no-grid mode. --- inventory/templates/testing.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inventory/templates/testing.html b/inventory/templates/testing.html index 937afde..5b248a4 100644 --- a/inventory/templates/testing.html +++ b/inventory/templates/testing.html @@ -387,6 +387,7 @@ function setGrid() { gridEl.style.backgroundImage = ""; gridEl.style.backgroundSize = ""; gridEl.style.boxShadow = "none"; + dotEl.classList.add('d-none'); if (type === 'fullGrid') { gridEl.style.backgroundImage = @@ -415,6 +416,7 @@ function setGrid() { } else { // noGrid gridEl.style.boxShadow = "inset 0 0 0 1px #ccc"; + dotEl.classList.add('d-none'); } } @@ -517,9 +519,11 @@ gridEl.addEventListener('pointermove', (e) => { coordsEl.classList.remove('d-none'); - dotEl.classList.remove('d-none'); - dotEl.style.top = `${renderY}px`; - dotEl.style.left = `${renderX}px`; + if (getActiveType() !== 'noGrid') { + dotEl.classList.remove('d-none'); + dotEl.style.top = `${renderY}px`; + dotEl.style.left = `${renderX}px`; + } const type = getActiveType();