Vanessa 2022-12-21 23:26:03 +08:00
parent e6658073eb
commit b1568db827
3 changed files with 10 additions and 3 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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;
} }