From 343986c0185c7776f36b8742604c7ad6d2999194 Mon Sep 17 00:00:00 2001 From: Song <1667077010@qq.com> Date: Sat, 19 Jul 2025 05:35:57 +0800 Subject: [PATCH] make monospace font family follows app setting in auto completion menu (#237) Co-authored-by: Gregory Schier --- src-web/components/core/Editor/Editor.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src-web/components/core/Editor/Editor.css b/src-web/components/core/Editor/Editor.css index 5a6003f2..968259a2 100644 --- a/src-web/components/core/Editor/Editor.css +++ b/src-web/components/core/Editor/Editor.css @@ -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) */