fix(identity): apply safe list styles in modal runtime

This commit is contained in:
2026-10-04 22:25:15 +08:00
parent 2b3e325d63
commit d6e3b377b4
+7
View File
@@ -41,6 +41,13 @@
var input = form && form.querySelector('[data-auth-evidence]');
var preview = form && form.querySelector('[data-auth-preview]');
if (!form || !input || !preview) return;
Array.prototype.forEach.call(form.querySelectorAll('ul, ol'), function (list) {
var listStyle = list.tagName.toLowerCase() === 'ol' ? 'decimal' : 'disc';
list.style.setProperty('list-style-type', listStyle, 'important');
list.style.setProperty('list-style-position', 'inside', 'important');
list.style.setProperty('padding-left', '8px', 'important');
list.style.setProperty('margin-left', '0', 'important');
});
shell.setAttribute('aria-labelledby', 'uc-auth-modal-title');
var selectedFiles = [];