diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.css index 8d2d6a1b8..bca9ec195 100644 --- a/app/appearance/themes/daylight/theme.css +++ b/app/appearance/themes/daylight/theme.css @@ -101,7 +101,7 @@ /* 阴影 */ --b3-point-shadow: 0 0 1px 0px rgba(0, 0, 0, 0.1), 0 0 2px 0px rgba(0, 0, 0, 0.2); - --b3-dialog-shadow: 0 8px 24px #010409; + --b3-dialog-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); --b3-button-shadow: 0px 5px 5px -3px rgb(0 0 0 / 0.2), 0px 8px 10px 1px rgb(0 0 0 / 0.14), 0px 3px 14px 2px rgb(0 0 0 / 0.12); /* 图表颜色 */ diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.css index 71cf5d84a..4b51467df 100644 --- a/app/appearance/themes/midnight/theme.css +++ b/app/appearance/themes/midnight/theme.css @@ -13,11 +13,11 @@ --b3-theme-error: #d23f31; /* 文字颜色 */ - --b3-theme-on-primary: #bababa; + --b3-theme-on-primary: #fff; --b3-theme-on-secondary: #fff; --b3-theme-on-background: #dadada; --b3-theme-on-surface: #9aa0a6; - --b3-theme-on-surface-light: var(--b3-theme-on-primary); + --b3-theme-on-surface-light: #bababa; --b3-theme-on-error: #fff; /* 字体 */ @@ -101,7 +101,7 @@ /* 阴影 */ --b3-point-shadow: inset 0 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.09), 0 3px 6px rgba(0, 0, 0, .04), 0 0 0 0 transparent; - --b3-dialog-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); + --b3-dialog-shadow: 0 8px 24px #010409; --b3-button-shadow: 0px 5px 5px -3px rgb(0 0 0 / 0.2), 0px 8px 10px 1px rgb(0 0 0 / 0.14), 0px 3px 14px 2px rgb(0 0 0 / 0.12); /* 图表颜色 */ diff --git a/app/src/dialog/message.ts b/app/src/dialog/message.ts index 383212c42..9d4c6fd6c 100644 --- a/app/src/dialog/message.ts +++ b/app/src/dialog/message.ts @@ -12,6 +12,13 @@ export const initMessage = () => { hideMessage(target.parentElement.getAttribute("data-id")); event.preventDefault(); break; + } else if (target.tagName === "A") { + break; + } else if (target.classList.contains("b3-snackbar")) { + hideMessage(target.getAttribute("data-id")); + event.preventDefault(); + event.stopPropagation(); + break; } else if (target.isSameNode(messageElement.lastElementChild)) { target.parentElement.classList.remove("b3-snackbars--show"); setTimeout(() => {