mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 05:14:24 +01:00
chore(layout/inline_title): show note type switcher for code notes as well
This commit is contained in:
parent
86f36922c4
commit
4998560e31
@ -159,7 +159,7 @@ function NoteTypeSwitcher() {
|
|||||||
const currentNoteTypeData = useMemo(() => NOTE_TYPES.find(t => t.type === currentNoteType), [ currentNoteType ]);
|
const currentNoteTypeData = useMemo(() => NOTE_TYPES.find(t => t.type === currentNoteType), [ currentNoteType ]);
|
||||||
const { builtinTemplates, collectionTemplates } = useBuiltinTemplates();
|
const { builtinTemplates, collectionTemplates } = useBuiltinTemplates();
|
||||||
|
|
||||||
return (note?.type === "text" &&
|
return (
|
||||||
<div
|
<div
|
||||||
className="note-type-switcher"
|
className="note-type-switcher"
|
||||||
onWheel={onWheelHorizontalScroll}
|
onWheel={onWheelHorizontalScroll}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user