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