mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-11 05:45:26 -06:00
fix(relation_map): floating buttons stuck when showing source
This commit is contained in:
parent
62bb8ac89a
commit
f30bdd54b1
@ -218,8 +218,8 @@ function SaveToNoteButton({ note }: FloatingButtonContext) {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
||||||
function RelationMapButtons({ note, triggerEvent }: FloatingButtonContext) {
|
function RelationMapButtons({ note, isDefaultViewMode, triggerEvent }: FloatingButtonContext) {
|
||||||
const isEnabled = (note.type === "relationMap");
|
const isEnabled = (note.type === "relationMap" && isDefaultViewMode);
|
||||||
return isEnabled && (
|
return isEnabled && (
|
||||||
<>
|
<>
|
||||||
<FloatingButton
|
<FloatingButton
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user