make monospace font family follows app setting in auto completion menu (#237)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
This commit is contained in:
Song
2025-07-19 05:35:57 +08:00
committed by GitHub
parent 0d4b7bb5e2
commit 343986c018

View File

@@ -255,10 +255,14 @@
/* NOTE: Extra selector required to override default styles */
.cm-tooltip.cm-tooltip-autocomplete,
.cm-tooltip.cm-completionInfo {
@apply shadow-lg bg-surface rounded text-text-subtle border border-border-subtle z-50 pointer-events-auto text-editor;
@apply shadow-lg bg-surface rounded text-text-subtle border border-border-subtle z-50 pointer-events-auto;
& * {
@apply font-mono text-editor !important;
}
.cm-completionIcon {
@apply font-mono opacity-80 italic;
@apply opacity-80 italic;
&::after {
content: 'a' !important; /* Default (eg. for GraphQL) */