mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
e6658073eb
commit
b1568db827
3 changed files with 10 additions and 3 deletions
|
|
@ -51,7 +51,7 @@
|
|||
padding: 8px;
|
||||
position: absolute;
|
||||
left: calc(100% + 8px);
|
||||
top: -5px;
|
||||
top: -8px;
|
||||
box-shadow: var(--b3-dialog-shadow);
|
||||
mix-blend-mode: difference;
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ export const openDiffCard = (nodeElement: Element[]) => {
|
|||
deckID: target.parentElement.getAttribute("data-id"),
|
||||
blockIDs: ids
|
||||
}, () => {
|
||||
|
||||
showMessage(window.siyuan.languages.addDeck)
|
||||
})
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
@ -116,7 +116,7 @@ export const openDiffCard = (nodeElement: Element[]) => {
|
|||
deckID: target.parentElement.getAttribute("data-id"),
|
||||
blockIDs: ids
|
||||
}, () => {
|
||||
|
||||
showMessage(window.siyuan.languages.removeDeck)
|
||||
})
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
|
|
@ -672,6 +672,13 @@ export class Gutter {
|
|||
appearanceElement.lastElementChild.classList.add("b3-menu__submenu--row");
|
||||
this.genAlign(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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue