fix(profile): let user center and public profile span the full viewport

This commit is contained in:
2026-09-23 13:36:16 +08:00
parent 10c63e02d5
commit bbd5e97bac
6 changed files with 19 additions and 17 deletions
+5 -5
View File
@@ -206,7 +206,6 @@ Full admin panel preserved (settings, OAuth, content tools, etc).
--float-btn-bg: rgba(200, 200, 200, 0.40);
/* ===== AKSRT-to-AKSRT canonical aliases ===== */
--content-max: var(--container);
--font-heading: var(--font-ui);
--radius-card: var(--radius);
--radius-md: var(--radius);
@@ -3468,12 +3467,13 @@ html.dark body.has-scrolled .site-nav--glass {
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. */
/* 用户中心(双栏)与公开主页整页铺满视口,不受后台「内容最大宽度」限制。
* 内容最大宽度只约束文章/归档等单栏阅读场景;两栏需要横向空间,
* 被 1200 一类阅读宽度收窄会在左右两侧留下大片空白。
* 统一在此声明,避免路由 CSS 与 legacy .container 规则各自漂移。 */
.site-main.content-shell.aksrt-profile,
.site-main.content-shell.aksrt-user-home {
max-width: var(--content-max, var(--container, 1440px));
max-width: 100%;
box-sizing: border-box;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
-1
View File
@@ -181,7 +181,6 @@
--float-btn-bg: rgba(200, 200, 200, 0.40);
/* ===== AKSRT-to-AKSRT canonical aliases ===== */
--content-max: var(--container);
--font-heading: var(--font-ui);
--radius-card: var(--radius);
--radius-md: var(--radius);
+5 -4
View File
@@ -16,12 +16,13 @@
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. */
/* 用户中心(双栏)与公开主页整页铺满视口,不受后台「内容最大宽度」限制。
* 内容最大宽度只约束文章/归档等单栏阅读场景;两栏需要横向空间,
* 被 1200 一类阅读宽度收窄会在左右两侧留下大片空白。
* 统一在此声明,避免路由 CSS 与 legacy .container 规则各自漂移。 */
.site-main.content-shell.aksrt-profile,
.site-main.content-shell.aksrt-user-home {
max-width: var(--content-max, var(--container, 1440px));
max-width: 100%;
box-sizing: border-box;
}