diff --git a/frontend/index.html b/frontend/index.html index e7b1e48..550c8eb 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -22,7 +22,7 @@
- + github diff --git a/frontend/sw.js b/frontend/sw.js index a8648fe..ac12877 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,4 +1,4 @@ -const CACHE = 'otaman-v112'; +const CACHE = 'otaman-v113'; const URLS = [ 'index.html', 'help.html', diff --git a/frontend/tests/indicator.test.js b/frontend/tests/indicator.test.js index b832d4c..448b054 100644 --- a/frontend/tests/indicator.test.js +++ b/frontend/tests/indicator.test.js @@ -126,3 +126,11 @@ test('indicator markup carries the dot and image elements', () => { assert.match(html, /id="state-indicator-dot"/); assert.match(html, /id="state-indicator-img"[^>]*src="nosim\.svg"/); }); + +test('indicator image stays within the 32px header row budget', () => { + const m = /id="state-indicator-img"[^>]*style="width:(\d+)px;height:(\d+)px"/.exec(html); + assert.ok(m, 'inline image size not found'); + assert.strictEqual(m[1], m[2]); + const size = Number(m[1]); + assert.ok(size >= 24 && size <= 32, 'size ' + size + 'px would change the header height'); +});