This commit is contained in:
Vanessa 2023-04-06 22:32:33 +08:00
parent 0fe6759bde
commit 5987b0cea7
7 changed files with 21 additions and 21 deletions

View file

@ -365,7 +365,7 @@ export const globalShortcut = () => {
const currentType = currentLiElement.getAttribute("data-type");
if (currentType) {
if (currentType === "riffCard") {
openCard()
openCard();
} else {
getDockByType(currentType as TDockType).toggleModel(currentType as TDockType, true);
}
@ -931,7 +931,7 @@ const dialogArrow = (element: HTMLElement, event: KeyboardEvent) => {
const currentType = currentLiElement.getAttribute("data-type");
if (currentType) {
if (currentType === "riffCard") {
openCard()
openCard();
} else {
getDockByType(currentType as TDockType).toggleModel(currentType as TDockType, true);
}

View file

@ -12,8 +12,8 @@ export const openChangelog = () => {
const dialog = new Dialog({
title: `v${Constants.SIYUAN_VERSION} ${window.siyuan.languages.update}`,
width: isMobile() ? "80vw" : "520px",
content: `<div class="b3-dialog__content b3-typography b3-typography--default">${response.data.html}</div>`
content: `<div style="overflow:auto;height: ${isMobile() ? "80" : "70"}vh;" class="b3-dialog__content b3-typography b3-typography--default">${response.data.html}</div>`
});
highlightRender(dialog.element);
});
}
};