From 122d6282e1c734f39c3bb1a708cf33078086287d Mon Sep 17 00:00:00 2001 From: phamnazage-jpg Date: Wed, 3 Jun 2026 11:05:10 +0800 Subject: [PATCH] fix(portal): unify all input/select/textarea/label/button/table styles via global fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: only admin/index.html had explicit .input / .select / .label classes. 100+ inputs across logical-groups / route-health / accounts / providers / admin-batch-import + public portal had no class → browser default styling → 页面看起来「未统一」。 Fix: - portal.css: add global rules that auto-apply design system styling to any input/select/textarea/label/button/table that doesn't opt out via .raw-input / .field-label. The existing .input / .select / .label / .btn classes still win (same styles, just explicit). - portal.js: detectInitialTheme() now respects HTML's data-theme attribute first (page author intent), then localStorage, then OS preference. This makes admin pages' explicit data-theme="dark" actually stick instead of being overridden. - admin/index.html: h3 标题 8 个 article 统一用 class="card-title" (前 4 个 inline 15px / 后 3 个 inline 16px 已统一) - 6 admin pages: 修复 critical HTML 结构 bug — 之前 batch 处理的 残留让