fix(ui): add keyboard shortcut hints toggle

Hide shortcut hints in WebUI and allow toggling in native desktop apps.
This commit is contained in:
Shantur Rathore
2026-02-13 23:44:28 +00:00
parent e9f281a69d
commit c7195469bd
22 changed files with 120 additions and 15 deletions

View File

@@ -153,6 +153,19 @@
@apply opacity-50;
}
/*
Shortcut hints are useful on desktop native apps, but are noisy/irrelevant on
touch-first devices and in WebUI where browser shortcuts often conflict.
*/
html[data-runtime-host="web"] .keyboard-hints,
html[data-runtime-host="web"] .kbd-hint,
html[data-runtime-platform="mobile"] .keyboard-hints,
html[data-runtime-platform="mobile"] .kbd-hint,
html[data-keyboard-hints="hide"] .keyboard-hints,
html[data-keyboard-hints="hide"] .kbd-hint {
display: none !important;
}
/* Truncate from the start (keeps end visible; good for paths) */
.truncate-start {
overflow: hidden;