fix(HEL-240): 去掉登录页底部状态栏缺口
登录页覆盖全局 body 底边距,让左栏品牌面板铺满视口高度。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
f905b44675
commit
aef8a059f2
@@ -377,7 +377,7 @@
|
|||||||
"/shared/tokens.css?v=20260829-hel240",
|
"/shared/tokens.css?v=20260829-hel240",
|
||||||
"/shared/base.css?v=20260806-1",
|
"/shared/base.css?v=20260806-1",
|
||||||
"/shared/shell.css?v=20260829-hel237",
|
"/shared/shell.css?v=20260829-hel237",
|
||||||
"/shared/auth.css?v=20260829-hel240",
|
"/shared/auth.css?v=20260829-hel240b",
|
||||||
"/shared/components/controls.css?v=20260829-hel237",
|
"/shared/components/controls.css?v=20260829-hel237",
|
||||||
"/shared/components/navigation.css?v=20260820-1",
|
"/shared/components/navigation.css?v=20260820-1",
|
||||||
"/shared/components/cards.css?v=20260820-1",
|
"/shared/components/cards.css?v=20260820-1",
|
||||||
@@ -465,7 +465,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "frontend/index.html",
|
"path": "frontend/index.html",
|
||||||
"bytes": 48253,
|
"bytes": 48254,
|
||||||
"lines": 664
|
"lines": 664
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@
|
|||||||
<link rel="stylesheet" href="/shared/tokens.css?v=20260829-hel240">
|
<link rel="stylesheet" href="/shared/tokens.css?v=20260829-hel240">
|
||||||
<link rel="stylesheet" href="/shared/base.css?v=20260806-1">
|
<link rel="stylesheet" href="/shared/base.css?v=20260806-1">
|
||||||
<link rel="stylesheet" href="/shared/shell.css?v=20260829-hel237">
|
<link rel="stylesheet" href="/shared/shell.css?v=20260829-hel237">
|
||||||
<link rel="stylesheet" href="/shared/auth.css?v=20260829-hel240">
|
<link rel="stylesheet" href="/shared/auth.css?v=20260829-hel240b">
|
||||||
<link rel="stylesheet" href="/shared/components/controls.css?v=20260829-hel237">
|
<link rel="stylesheet" href="/shared/components/controls.css?v=20260829-hel237">
|
||||||
<link rel="stylesheet" href="/shared/components/navigation.css?v=20260820-1">
|
<link rel="stylesheet" href="/shared/components/navigation.css?v=20260820-1">
|
||||||
<link rel="stylesheet" href="/shared/components/cards.css?v=20260820-1">
|
<link rel="stylesheet" href="/shared/components/cards.css?v=20260820-1">
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="/shared/tokens.css?v=20260829-hel240">
|
<link rel="stylesheet" href="/shared/tokens.css?v=20260829-hel240">
|
||||||
<link rel="stylesheet" href="/shared/base.css?v=20260806-1">
|
<link rel="stylesheet" href="/shared/base.css?v=20260806-1">
|
||||||
<link rel="stylesheet" href="/shared/auth.css?v=20260829-hel240">
|
<link rel="stylesheet" href="/shared/auth.css?v=20260829-hel240b">
|
||||||
<link rel="stylesheet" href="/shared/components/controls.css?v=20260820-2">
|
<link rel="stylesheet" href="/shared/components/controls.css?v=20260820-2">
|
||||||
</head>
|
</head>
|
||||||
<body class="login-portal">
|
<body class="login-portal">
|
||||||
|
|||||||
@@ -1695,6 +1695,10 @@ button.account-role-badge:focus-visible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body.login-portal {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.login-portal {
|
.login-portal {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ async function assertConfirmedSkeleton(page, { width, height }) {
|
|||||||
if (width === 1440) {
|
if (width === 1440) {
|
||||||
expect(brand.width).toBeGreaterThan(470);
|
expect(brand.width).toBeGreaterThan(470);
|
||||||
expect(brand.width).toBeLessThan(520);
|
expect(brand.width).toBeLessThan(520);
|
||||||
|
expect(brand.height).toBe(height);
|
||||||
} else if (width === 1920) {
|
} else if (width === 1920) {
|
||||||
expect(brand.width).toBeGreaterThan(540);
|
expect(brand.width).toBeGreaterThan(540);
|
||||||
expect(brand.width).toBeLessThan(580);
|
expect(brand.width).toBeLessThan(580);
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ class LoginPortalContractTests(unittest.TestCase):
|
|||||||
self.assertIn("width: var(--login-brand-share);", AUTH)
|
self.assertIn("width: var(--login-brand-share);", AUTH)
|
||||||
self.assertIn("width: var(--login-card-width);", AUTH)
|
self.assertIn("width: var(--login-card-width);", AUTH)
|
||||||
self.assertIn("justify-content: flex-end;", AUTH)
|
self.assertIn("justify-content: flex-end;", AUTH)
|
||||||
|
self.assertIn("body.login-portal {", AUTH)
|
||||||
|
self.assertIn("padding-bottom: 0;", AUTH)
|
||||||
|
self.assertNotIn("padding: 0 0 var(--statusbar-height);", AUTH)
|
||||||
|
|
||||||
def test_portal_keeps_account_switch_and_theme_hooks(self) -> None:
|
def test_portal_keeps_account_switch_and_theme_hooks(self) -> None:
|
||||||
self.assertIn("data-switch-id", LOGIN_JS)
|
self.assertIn("data-switch-id", LOGIN_JS)
|
||||||
|
|||||||
Reference in New Issue
Block a user