fix(profile): align account modal UI

This commit is contained in:
kate522 committed 2026-10-06 01:46:48 +08:00
1 parent 248912f610
commit ce429e1caf
3 files changed
+57 -25

No files matched your search

+1 -3
View File
@@ -721,7 +721,7 @@
runtime.open({
html: template.innerHTML,
kind: 'account-settings',
className: 'aksrt-user-settings-modal modal-mini',
className: 'aksrt-user-settings-modal modal-mini full-sm',
mobileBottom: true,
onContent: function (_, session) {
var shell = session && session.shell;
@@ -729,8 +729,6 @@
var dialog = shell.querySelector('[data-account-dialog]');
var title = dialog && dialog.querySelector('[data-account-password-title], .modal-colorful-header .text-center > div:last-child');
if (title && title.textContent.trim()) shell.setAttribute('aria-label', title.textContent.trim());
var firstInput = shell.querySelector('input:not([type="hidden"]), textarea, select');
if (firstInput) firstInput.focus();
bindDialog(shell);
},
});