Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): drop monospace on shortcut settings key chips

Elian Doran06b8337fbd42
diff --git a/apps/client/src/widgets/type_widgets/options/shortcuts.css b/apps/client/src/widgets/type_widgets/options/shortcuts.css
index a300a9d45a..f1cc25c4a8 100644
--- a/apps/client/src/widgets/type_widgets/options/shortcuts.css
+++ b/apps/client/src/widgets/type_widgets/options/shortcuts.css
@@ -95,6 +95,9 @@
border: none;
box-shadow: none;
padding: 0;
+ /* Override the global monospace `kbd` rule (style.css) so the shortcut glyphs and their
+ labels share the UI font and line up; the global rule uses !important, so this must too. */
+ font-family: inherit !important;
font-size: 0.9em;
color: var(--main-text-color);
display: block !important;