mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 14:55:03 +08:00
fix(relation_map): floating buttons stuck when showing source
This commit is contained in:
parent
62bb8ac89a
commit
f30bdd54b1
1 changed files with 2 additions and 2 deletions
|
|
@ -218,8 +218,8 @@ function SaveToNoteButton({ note }: FloatingButtonContext) {
|
|||
/>
|
||||
}
|
||||
|
||||
function RelationMapButtons({ note, triggerEvent }: FloatingButtonContext) {
|
||||
const isEnabled = (note.type === "relationMap");
|
||||
function RelationMapButtons({ note, isDefaultViewMode, triggerEvent }: FloatingButtonContext) {
|
||||
const isEnabled = (note.type === "relationMap" && isDefaultViewMode);
|
||||
return isEnabled && (
|
||||
<>
|
||||
<FloatingButton
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue