feat(layout/note_actions): export as image

This commit is contained in:
Elian Doran
2025-12-15 10:06:01 +02:00
parent 4b80eec000
commit b725dbea7e
3 changed files with 28 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ function CopyImageReferenceButton({ note, isDefaultViewMode }: FloatingButtonCon
}
function ExportImageButtons({ note, triggerEvent, isDefaultViewMode }: FloatingButtonContext) {
const isEnabled = ["mermaid", "mindMap"].includes(note?.type ?? "")
const isEnabled = !isNewLayout && ["mermaid", "mindMap"].includes(note?.type ?? "")
&& note?.isContentAvailable() && isDefaultViewMode;
return isEnabled && (
<>