This commit is contained in:
Liang Ding 2023-04-06 22:40:28 +08:00
parent ec38fe0b00
commit d81c56f026
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 6 additions and 2 deletions

View file

@ -2,7 +2,6 @@ import {fetchPost} from "../util/fetch";
import {Dialog} from "../dialog";
import {highlightRender} from "../protyle/markdown/highlightRender";
import {isMobile} from "../util/functions";
import {Constants} from "../constants";
export const openChangelog = () => {
fetchPost("/api/system/getChangelog", {}, (response) => {
@ -10,7 +9,7 @@ export const openChangelog = () => {
return;
}
const dialog = new Dialog({
title: `v${Constants.SIYUAN_VERSION} ${window.siyuan.languages.update}`,
title: `${window.siyuan.languages.changelog}`,
width: isMobile() ? "80vw" : "768px",
content: `<div style="overflow:auto;height: ${isMobile() ? "80" : "70"}vh;" class="b3-dialog__content b3-typography b3-typography--default">${response.data.html}</div>`
});