From d6e3b377b4d2c2e9279460d7fe1e668d48ff4d55 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 4 Oct 2026 22:25:15 +0800 Subject: [PATCH] fix(identity): apply safe list styles in modal runtime --- assets/js/routes/user-center-auth.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/js/routes/user-center-auth.js b/assets/js/routes/user-center-auth.js index b5d2c475..eaabc7f8 100644 --- a/assets/js/routes/user-center-auth.js +++ b/assets/js/routes/user-center-auth.js @@ -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 = [];