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
@@ -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%/);