fix(profile): remove gap above public profile hero

This commit is contained in:
2026-09-23 13:57:55 +08:00
parent edb60d08b4
commit b798c7a45d
4 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -3475,9 +3475,12 @@ html.dark body.has-scrolled .site-nav--glass {
box-sizing: border-box;
}
/* 公开主页是单栏,继续沿用后台「内容最大宽度」。 */
/* 公开主页是单栏,继续沿用后台「内容最大宽度」。顶部多功能组件位于
* main 之前;main 的通用 32/40px 上内边距会把资料卡与组件人为拉开,
* 这里仅对公开主页清除该段重复空白。 */
.site-main.content-shell.aksrt-user-home {
max-width: var(--container, 1440px);
padding-top: 0;
box-sizing: border-box;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -24,9 +24,12 @@
box-sizing: border-box;
}
/* 公开主页是单栏,继续沿用后台「内容最大宽度」。 */
/* 公开主页是单栏,继续沿用后台「内容最大宽度」。顶部多功能组件位于
* main 之前;main 的通用 32/40px 上内边距会把资料卡与组件人为拉开,
* 这里仅对公开主页清除该段重复空白。 */
.site-main.content-shell.aksrt-user-home {
max-width: var(--container, 1440px);
padding-top: 0;
box-sizing: border-box;
}
@@ -456,7 +456,7 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
// Only the two-column user center spans the viewport; the single-column public
// profile keeps following the admin content max width.
assert.match(frontendLayoutCss, /\.site-main\.content-shell\.aksrt-profile\s*\{[\s\S]*?max-width:\s*100%/);
assert.match(frontendLayoutCss, /\.site-main\.content-shell\.aksrt-user-home\s*\{[\s\S]*?max-width:\s*var\(--container, 1440px\)/);
assert.match(frontendLayoutCss, /\.site-main\.content-shell\.aksrt-user-home\s*\{[\s\S]*?max-width:\s*var\(--container, 1440px\)[\s\S]*?padding-top:\s*0/);
// The front end enqueues build/public.min.css, not the frontend/ sources, so a
// source-only edit never reaches the page. The bundle must carry the contract.
assert.match(publicBundleCss, /\.site-main\.content-shell\.aksrt-profile\s*\{[\s\S]*?max-width:\s*100%/);