From 01b05f186e3f9e351f3837707fbdfeb46b1d8dac Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 24 Nov 2025 18:43:07 +0200 Subject: [PATCH] chore(options/code): hide tooltip for plain text --- apps/client/src/widgets/type_widgets/options/code_notes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/type_widgets/options/code_notes.tsx b/apps/client/src/widgets/type_widgets/options/code_notes.tsx index 289d0dfed..2dbe761a7 100644 --- a/apps/client/src/widgets/type_widgets/options/code_notes.tsx +++ b/apps/client/src/widgets/type_widgets/options/code_notes.tsx @@ -140,7 +140,7 @@ export function CodeMimeTypesList() { useStaticTooltip(containerRef, { title() { const mime = this.querySelector("input")?.value; - if (!mime) return ""; + if (!mime || mime === "text/plain") return ""; const hasCodeBlockSyntax = !!codeBlockMimeTypes[mime]; const hasCodeNoteSyntax = !!codeNoteMimeTypes[mime];