From e37060afffe04b12301d9a3b9b198ee5e9b1207d Mon Sep 17 00:00:00 2001 From: Waters Church Date: Tue, 15 Sep 2026 10:24:44 -0400 Subject: [PATCH] Shell: the tile close button is a drawn cross MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ✕ glyph came from whatever font the browser chose — smaller in Safari than in Chromium. An inline SVG at the icon size is the same everywhere and still takes the button's colour on hover. Co-Authored-By: Claude Fable 5.1 --- public/shell.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/shell.js b/public/shell.js index 9fdbdb6..2ba64e6 100644 --- a/public/shell.js +++ b/public/shell.js @@ -251,6 +251,7 @@ function minSizeOf(tile) { /* ── tile DOM ───────────────────────────────────────────────────────── */ +const CLOSE_SVG = ''; const GEAR_SVG = ''; function buildTile(tile) { @@ -294,7 +295,7 @@ function buildTile(tile) { const close = document.createElement('button'); close.className = 'tile-btn close'; close.title = 'Remove this tile'; - close.textContent = '✕'; + close.innerHTML = CLOSE_SVG; // a drawn cross, the same size in every browser (the ✕ glyph varies) close.addEventListener('click', (e) => { e.stopPropagation(); removeTile(tile.id);