mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 05:09:54 +01:00
fix(layout/inline-title): hide note type switcher on other note types
This commit is contained in:
@@ -136,7 +136,7 @@ function NoteTypeSwitcher() {
|
||||
const currentNoteType = useNoteProperty(note, "type");
|
||||
const noteTypes = useMemo(() => NOTE_TYPES.filter((nt) => !nt.reserved && !nt.static), []);
|
||||
|
||||
return (note &&
|
||||
return (note?.type === "text" &&
|
||||
<div
|
||||
className="note-type-switcher"
|
||||
onWheel={onWheelHorizontalScroll}
|
||||
|
||||
Reference in New Issue
Block a user