fix(profile): remove gap above public profile hero
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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%/);
|
||||
|
||||
Reference in New Issue
Block a user