fix: 评测页面顶部被固定导航栏遮挡 - 添加 pt-14 偏移\n\n根因:PageLayout.jsx 中 <Header> 使用 position: fixed; top: 0(h-14, 56px),但\n非 /console 路径的 <Content> padding 为 0,评测页面顶部内容被固定头部遮盖。\n\n修改:在外容器和 loading 容器添加 pt-14,精确匹配头部高度。
This commit is contained in:
parent
d455641b86
commit
5b5d7a95f3
5
l.href))
5
l.href))
|
|
@ -1,5 +0,0 @@
|
||||||
### Error
|
|
||||||
SyntaxError: Unexpected token ')'
|
|
||||||
at eval (eval at evaluate (:303:30), <anonymous>:2:38)
|
|
||||||
at UtilityScript.evaluate (<anonymous>:305:16)
|
|
||||||
at UtilityScript.<anonymous> (<anonymous>:1:44)
|
|
||||||
|
|
@ -167,7 +167,7 @@ const Benchmarks = () => {
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-background flex items-center justify-center">
|
<div className="min-h-screen bg-background flex items-center justify-center pt-14">
|
||||||
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-foreground/20" />
|
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-foreground/20" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
@ -192,7 +192,7 @@ const Benchmarks = () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-background text-foreground">
|
<div className="min-h-screen bg-background text-foreground pt-14">
|
||||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 sm:py-12">
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 sm:py-12">
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div className="mb-8 sm:mb-12">
|
<div className="mb-8 sm:mb-12">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue