Vanessa 2024-10-21 20:03:43 +08:00
parent 071fbf0605
commit d0c6268b9f
2 changed files with 9 additions and 9 deletions

View file

@ -27,7 +27,6 @@
& > .b3-button {
align-self: flex-end;
margin-right: 18px;
}
& > .fn__flex-1 {
@ -50,16 +49,16 @@
padding: 8px 16px;
color: var(--b3-theme-on-primary);
font-size: inherit;
background-color: var(--b3-theme-primary);
background-color: var(--b3-tooltips-background);
box-sizing: border-box;
box-shadow: 0 3px 5px -1px rgb(0 0 0 / 20%), 0 6px 10px 0 rgb(0 0 0 / 14%), 0 1px 18px 0 rgb(0 0 0 / 12%);
box-shadow: var(--b3-tooltips-shadow);
word-break: break-word;
max-width: 20vw;
text-align: left;
display: inline-block;
&--close {
padding-right: 27px;
padding-right: 50px;
}
a {
@ -75,13 +74,14 @@
&__close {
position: absolute;
cursor: pointer;
height: 16px;
width: 16px;
height: 18px;
width: 18px;
color: var(--b3-theme-on-primary);
transition: var(--b3-transition);
opacity: .68;
right: 5px;
right: 16px;
top: 10px;
box-sizing: border-box;
opacity: .68;
&:hover {
opacity: 1;

View file

@ -4,7 +4,7 @@ import {Constants} from "../constants";
export const initMessage = () => {
const messageElement = document.getElementById("message");
messageElement.innerHTML = `<div class="fn__flex-1"></div>
<button class="b3-button--cancel b3-button b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.clearMessage}"><svg style="margin-right: 0"><use xlink:href="#iconSelect"></use></svg></button>`;
<button class="b3-button ft__smaller">${window.siyuan.languages.clearMessage}</button>`;
messageElement.addEventListener("click", (event) => {
let target = event.target as HTMLElement;
while (target && !target.isEqualNode(messageElement)) {