style: style optimization

This commit is contained in:
eoao
2026-05-08 23:55:56 +08:00
parent 8bf9adbd13
commit c14615d1ef
3 changed files with 2 additions and 12 deletions

View File

@@ -43,7 +43,6 @@
.loading-hide {
pointer-events: none;
transition: all 200ms;
opacity: 0;
}

View File

@@ -174,21 +174,12 @@ router.afterEach((to) => {
})
function removeLoading() {
if (window.innerWidth < 1025) {
document.documentElement.style.setProperty('--loading-hide-transition', 'none')
}
const doc = document.getElementById('loading-first');
if (!doc) {
return;
}
doc.classList.add('loading-complete')
setTimeout(() => {
doc.classList.add('loading-hide')
setTimeout(() => {
doc.remove()
}, 1000)
}, 200)
doc.remove()
}
export default router

View File

@@ -1468,7 +1468,7 @@ function editSetting(settingForm, refreshStatus = true) {
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
padding: 20px;
gap: 20px;
@media (max-width: 500px) {