Tighten legend mappings
Co-authored-by: diluteoxygen <82773456+diluteoxygen@users.noreply.github.com>
This commit is contained in:
parent
23279218f8
commit
7f7a08a449
1 changed files with 7 additions and 4 deletions
11
index.html
11
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue