fix(profile): restore route styles and hidden modals

This commit is contained in:
kate522 committed 2026-08-19 14:08:42 +08:00
1 parent a5ed4bbb6f
commit 886ea8732c
6 files changed
+74 -20

No files matched your search

+3
View File
@@ -7,6 +7,9 @@
align-items: center;
justify-content: center;
}
.aksrt-modal[hidden] {
display: none !important;
}
.aksrt-modal.is-open {
display: flex;
}
+1
View File
@@ -518,6 +518,7 @@
.aksrt-author-hero__identity .aksrt-medal-entry,
.aksrt-author-hero__identity .badg { height: 26px; box-sizing: border-box; margin: 0; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 26px; }
.aksrt-profile-details-modal { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 20px; }
.aksrt-profile-details-modal[hidden] { display: none !important; }
.aksrt-profile-details-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 22, .52); }
.aksrt-profile-details-modal__dialog { position: relative; width: min(100%, 420px); padding: 24px; border-radius: 16px; background: var(--color-card, #fff); box-shadow: 0 24px 64px rgba(0,0,0,.24); }
.aksrt-profile-details-modal__dialog h2 { margin: 0 28px 16px 0; font-size: 18px; }
+1 -1
View File
@@ -590,6 +590,7 @@
if (typeof m === 'string') m = document.getElementById(m);
if (!m) return;
m.classList.remove('is-open');
m.hidden = true;
document.body.style.overflow = '';
var f = m.querySelector('form');
var sceneMap = { 'pwd-modal': 'change_password', 'email-modal': 'change_email', 'phone-modal': 'bind_phone' };
@@ -605,7 +606,6 @@
if (scene && store && store[scene] && typeof store[scene].reset === 'function') {
store[scene].reset();
}
if (m.id === 'phone-modal') m.hidden = true;
}
root.querySelectorAll('.security-trigger').forEach(function(btn) {