Skip to content

Build your personal knowledge base with Trilium Notes

chore(layout/inline_title): show note type switcher for code notes as well

Elian Doran4998560e3147
diff --git a/apps/client/src/widgets/layout/InlineTitle.tsx b/apps/client/src/widgets/layout/InlineTitle.tsx
index 7882ef2024..60b65d2dc6 100644
--- a/apps/client/src/widgets/layout/InlineTitle.tsx
+++ b/apps/client/src/widgets/layout/InlineTitle.tsx
@@ -159,7 +159,7 @@ function NoteTypeSwitcher() {
const currentNoteTypeData = useMemo(() => NOTE_TYPES.find(t => t.type === currentNoteType), [ currentNoteType ]);
const { builtinTemplates, collectionTemplates } = useBuiltinTemplates();
- return (note?.type === "text" &&
+ return (
<div
className="note-type-switcher"
onWheel={onWheelHorizontalScroll}