fix(layout/inline-title): hide note type switcher on other note types

This commit is contained in:
Elian Doran
2025-12-13 12:49:51 +02:00
parent 470f6e5334
commit 7666f44b7a

View File

@@ -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}