diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts index 4729cafde..592453ea5 100644 --- a/app/src/ai/actions.ts +++ b/app/src/ai/actions.ts @@ -41,7 +41,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
`, - width: isMobile() ? "80vw" : "520px", + width: isMobile() ? "92vw" : "520px", }); const inputElement = dialog.element.querySelector("input") as HTMLInputElement; const btnsElement = dialog.element.querySelectorAll(".b3-button"); @@ -77,7 +77,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => { `, - width: isMobile() ? "80vw" : "520px", + width: isMobile() ? "92vw" : "520px", }); const inputElement = dialog.element.querySelector("input"); const btnsElement = dialog.element.querySelectorAll(".b3-button"); diff --git a/app/src/ai/chat.ts b/app/src/ai/chat.ts index d304c90ba..425302031 100644 --- a/app/src/ai/chat.ts +++ b/app/src/ai/chat.ts @@ -11,7 +11,7 @@ export const AIChat = (protyle: IProtyle, element: Element) => { `, - width: isMobile() ? "80vw" : "520px", + width: isMobile() ? "92vw" : "520px", }); const inputElement = dialog.element.querySelector("input") as HTMLInputElement; const btnsElement = dialog.element.querySelectorAll(".b3-button"); diff --git a/app/src/assets/scss/component/_button.scss b/app/src/assets/scss/component/_button.scss index 2340dd227..217b78fa8 100644 --- a/app/src/assets/scss/component/_button.scss +++ b/app/src/assets/scss/component/_button.scss @@ -18,6 +18,7 @@ height: 16px; width: 16px; margin-right: 4px; + flex-shrink: 0; } &:hover, diff --git a/app/src/assets/scss/component/_dialog.scss b/app/src/assets/scss/component/_dialog.scss index c3b24451a..f82c6e47d 100644 --- a/app/src/assets/scss/component/_dialog.scss +++ b/app/src/assets/scss/component/_dialog.scss @@ -77,12 +77,13 @@ &__close { position: absolute; cursor: pointer; - top: 10px; - right: -32px; + top: -2px; + right: -36px; height: 18px; width: 18px; opacity: .68; color: var(--b3-theme-on-surface); + padding: 8px; &:hover { opacity: 1; diff --git a/app/src/boot/openChangelog.ts b/app/src/boot/openChangelog.ts index 3fa4362d2..b1b8e0400 100644 --- a/app/src/boot/openChangelog.ts +++ b/app/src/boot/openChangelog.ts @@ -10,7 +10,7 @@ export const openChangelog = () => { } const dialog = new Dialog({ title: `✨ ${window.siyuan.languages.whatsNewInSiYuan}`, - width: isMobile() ? "90vw" : "768px", + width: isMobile() ? "92vw" : "768px", content: `