mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 09:49:07 +08:00
This commit is contained in:
parent
e6658073eb
commit
b1568db827
@ -51,7 +51,7 @@
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: calc(100% + 8px);
|
left: calc(100% + 8px);
|
||||||
top: -5px;
|
top: -8px;
|
||||||
box-shadow: var(--b3-dialog-shadow);
|
box-shadow: var(--b3-dialog-shadow);
|
||||||
mix-blend-mode: difference;
|
mix-blend-mode: difference;
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ export const openDiffCard = (nodeElement: Element[]) => {
|
|||||||
deckID: target.parentElement.getAttribute("data-id"),
|
deckID: target.parentElement.getAttribute("data-id"),
|
||||||
blockIDs: ids
|
blockIDs: ids
|
||||||
}, () => {
|
}, () => {
|
||||||
|
showMessage(window.siyuan.languages.addDeck)
|
||||||
})
|
})
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -116,7 +116,7 @@ export const openDiffCard = (nodeElement: Element[]) => {
|
|||||||
deckID: target.parentElement.getAttribute("data-id"),
|
deckID: target.parentElement.getAttribute("data-id"),
|
||||||
blockIDs: ids
|
blockIDs: ids
|
||||||
}, () => {
|
}, () => {
|
||||||
|
showMessage(window.siyuan.languages.removeDeck)
|
||||||
})
|
})
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -672,6 +672,13 @@ export class Gutter {
|
|||||||
appearanceElement.lastElementChild.classList.add("b3-menu__submenu--row");
|
appearanceElement.lastElementChild.classList.add("b3-menu__submenu--row");
|
||||||
this.genAlign(selectsElement, protyle);
|
this.genAlign(selectsElement, protyle);
|
||||||
this.genWidths(selectsElement, protyle);
|
this.genWidths(selectsElement, protyle);
|
||||||
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||||
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
label: window.siyuan.languages.riffCard,
|
||||||
|
click() {
|
||||||
|
openDiffCard(selectsElement);
|
||||||
|
}
|
||||||
|
}).element);
|
||||||
return window.siyuan.menus.menu;
|
return window.siyuan.menus.menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user