1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-06 10:00:26 +00:00

Make the shortcuts prettifier even prettier

This commit is contained in:
handlerug 2021-06-14 10:35:37 +07:00
parent 2f9ea998bf
commit 50dfabe279
No known key found for this signature in database
GPG Key ID: 38009F0605051491
2 changed files with 5 additions and 1 deletions

View File

@ -312,6 +312,10 @@ kbd {
text-align: center;
}
.kbd-or {
opacity: .4;
}
.dialog-wrap {
position: fixed;
top: 0;

View File

@ -245,7 +245,7 @@
shortcutColumn.className = 'shortcut-row__keys';
shortcutColumn.innerHTML = shortcut.shortcut.split(',')
.map(shortcuts => shortcuts.trim().split(' ').map(prettifyShortcut).join(' '))
.join(' or ');
.join(' <span class="kbd-or">or</span> ');
listItem.appendChild(shortcutColumn);
}