mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-13 18:54:21 +01:00
This commit is contained in:
parent
d697660c41
commit
d1835146ca
25 changed files with 59 additions and 60 deletions
|
|
@ -49,6 +49,7 @@ export const newDailyNote = () => {
|
|||
}
|
||||
});
|
||||
const dialog = new Dialog({
|
||||
title: window.siyuan.languages.plsChoose,
|
||||
content: `<div class="b3-dialog__content">
|
||||
<select class="b3-select fn__block">${optionsHTML}</select>
|
||||
</div>
|
||||
|
|
@ -56,7 +57,7 @@ export const newDailyNote = () => {
|
|||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>
|
||||
<button class="b3-button b3-button--text">${window.siyuan.languages.confirm}</button>
|
||||
</div>`,
|
||||
width: isMobile() ? "80vw" : "520px",
|
||||
width: isMobile() ? "92vw" : "520px",
|
||||
});
|
||||
dialog.element.setAttribute("data-key", window.siyuan.config.keymap.general.dailyNote.custom);
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
|
|
@ -97,7 +98,7 @@ export const newNotebook = () => {
|
|||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>
|
||||
<button class="b3-button b3-button--text">${window.siyuan.languages.confirm}</button>
|
||||
</div>`,
|
||||
width: isMobile() ? "80vw" : "520px"
|
||||
width: isMobile() ? "92vw" : "520px"
|
||||
});
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
dialog.bindInput(dialog.element.querySelector("input"), () => {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export const renameTag = (labelName: string) => {
|
|||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>
|
||||
<button class="b3-button b3-button--text">${window.siyuan.languages.confirm}</button>
|
||||
</div>`,
|
||||
width: isMobile() ? "80vw": "520px",
|
||||
width: isMobile() ? "92vw": "520px",
|
||||
});
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
btnsElement[0].addEventListener("click", () => {
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
|
|||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>
|
||||
<button class="b3-button b3-button--text">${window.siyuan.languages.confirm}</button>
|
||||
</div>`,
|
||||
width: isMobile() ? "90vw" : "50vw",
|
||||
width: isMobile() ? "92vw" : "50vw",
|
||||
destroyCallback() {
|
||||
if (range) {
|
||||
focusByRange(range);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue