fix(profile): align user page content width

This commit is contained in:
2026-09-23 12:16:26 +08:00
parent 5201f2ab6f
commit c315297d7f
6 changed files with 15 additions and 39 deletions
+9
View File
@@ -16,6 +16,15 @@
max-width: var(--container);
}
/* Profile routes use the exact value emitted from the admin content-width setting.
* Keep the shell contract here so the private center and public profile cannot
* drift through route-specific or legacy container rules. */
.site-main.content-shell.aksrt-profile,
.site-main.content-shell.aksrt-user-home {
max-width: var(--content-max, var(--container, 1440px));
box-sizing: border-box;
}
@media (min-width: 768px) {
.content-shell {
padding: 40px 24px 56px;
-8
View File
@@ -13,14 +13,6 @@
* - 密码强度条
*/
/* 用户主页 / 用户中心统一使用站点内容宽度,避免旧 page/dashboard 容器收窄。
* main 自身同时带 content-shell + aksrt-profile,不能写成 .aksrt-profile .content-shell。 */
.aksrt-profile.content-shell,
.content-shell.aksrt-profile {
width: 100%;
max-width: var(--container, 1440px);
}
/* ==================== 用户资料卡片(共享) ==================== */
.uc-header {
margin-bottom: 20px;
+1 -9
View File
@@ -10,15 +10,7 @@
*/
/* ==================== 用户中心容器 ==================== */
/* main 自身同时带 content-shell + aksrt-profile;宽度选择器应对准同一节点。 */
.aksrt-user-center .content-shell,
.aksrt-profile.content-shell,
.content-shell.aksrt-profile {
max-width: var(--container, 1440px);
width: 100%;
margin: 0 auto;
}
/* 主内容宽度由 frontend/layout.css 的 profile shell 合同统一管理。 */
.user-center,
.aksrt-profile.content-shell {
width: 100%;
-10
View File
@@ -1,10 +0,0 @@
/**
* Deprecated path.
*
* Public user-home tabs/cover are handled by assets/js/author.js
* (enqueued as aksrt-author on profile/user-home routes).
* This file intentionally does nothing to avoid double-binding.
*/
(function () {
'use strict';
})();