From 7f7a08a449d798742a10624bc6c2a80fb9c8b504 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:40:23 +0000 Subject: [PATCH] Tighten legend mappings Co-authored-by: diluteoxygen <82773456+diluteoxygen@users.noreply.github.com> --- index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 6e48258..19dcc05 100644 --- a/index.html +++ b/index.html @@ -549,7 +549,6 @@ function updatesLabel(u) { } const SUPPORT_MAP = { - '✅':'✅', '❌':'✖️', '❓':'❔', '❗':'🧪', @@ -561,11 +560,15 @@ function supportSymbol(sym) { return esc(SUPPORT_MAP[sym] || sym); } +const DRAWER_MAP = { + '🔄 Multi-Layout':'🔀 Multi-Layout', + '↔️ Horizontal':'⬅️➡️ Horizontal', + '↕️ Vertical':'⬆️⬇️ Vertical', +}; + function drawerLabel(drawer) { if (!drawer) return '—'; - if (drawer.indexOf('Multi-Layout') !== -1) return '🔀 Multi-Layout'; - if (drawer.indexOf('Horizontal') !== -1) return '⬅️➡️ Horizontal'; - if (drawer.indexOf('Vertical') !== -1) return '⬆️⬇️ Vertical'; + if (DRAWER_MAP[drawer]) return DRAWER_MAP[drawer]; return esc(drawer); }