From b5c72488967fe080a99e8cc7af5454be5e9d0d08 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 18 Nov 2023 11:17:07 +0800 Subject: [PATCH] :art: Improve `Quit the application` on the auth page https://github.com/siyuan-note/siyuan/issues/9680 --- app/stage/auth.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index e6c3ca8a2..1ffe78f6a 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -76,12 +76,12 @@ .b3-button--white { color: var(--b3-theme-primary); box-shadow: inset 0 0 0 1px var(--b3-theme-primary); - background-color: transparent; + background-color: #fff; } .b3-button--white:hover, .b3-button--white:focus { - background-color: var(--b3-theme-primary-lightest); + background-color: #e8eefc; box-shadow: inset 0 0 0 1px var(--b3-theme-primary); } @@ -432,6 +432,8 @@ } const exitSiYuan = () => { + document.querySelector('#message').classList.add('b3-snackbar--show') + document.querySelector('#message').firstElementChild.innerHTML = "{{.l8}}" try { fetch('/api/system/exit', { method: 'POST', @@ -440,8 +442,7 @@ return response.json() }).then((response) => { if (response.code === 1) { - document.querySelector('#message').classList.add('b3-snackbar--show') - document.querySelector('#message').firstElementChild.textContent = response.msg + document.querySelector('#message').firstElementChild.innerHTML = response.msg const buttonElement = document.querySelector(`#message button`) if (buttonElement) { buttonElement.addEventListener('click', () => {