fix(profile): align account modal UI
This commit is contained in:
1 parent
248912f610
commit
ce429e1caf
3 files changed
+57
-25
No files matched your search
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user