diff --git a/assets/css/routes/profile/layout.css b/assets/css/routes/profile/layout.css index daacaed8..2e42f6c0 100644 --- a/assets/css/routes/profile/layout.css +++ b/assets/css/routes/profile/layout.css @@ -54,8 +54,10 @@ 100% { opacity: 0; transform: translateY(8px) scale(0.95); } } -/* 用户主页 / 用户中心统一使用站点内容宽度,避免旧 page/dashboard 容器收窄 */ -.aksrt-profile .content-shell { +/* 用户主页 / 用户中心统一使用站点内容宽度,避免旧 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); } diff --git a/assets/css/routes/user-center/part-1.css b/assets/css/routes/user-center/part-1.css index e3788e15..ccc8ca77 100644 --- a/assets/css/routes/user-center/part-1.css +++ b/assets/css/routes/user-center/part-1.css @@ -6,7 +6,10 @@ */ /* ==================== 用户中心容器 ==================== */ -.aksrt-user-center .content-shell { +/* 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; diff --git a/author.php b/author.php index fe6519f4..31f76e9d 100644 --- a/author.php +++ b/author.php @@ -114,7 +114,7 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php'; -