Skip to content

Commit 14bf259

Browse files
committed
feat: 固定返回按钮并优化滚动条样式为蓝灰配色
1 parent 4cc431f commit 14bf259

2 files changed

Lines changed: 21 additions & 11 deletions

File tree

src/index.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,26 @@ button {
4646
transition: all 0.2s ease;
4747
}
4848

49-
/* 自定义滚动条 */
49+
/* 自定义滚动条 - 蓝灰配色 */
5050
::-webkit-scrollbar {
5151
width: 8px;
5252
height: 8px;
5353
}
5454

5555
::-webkit-scrollbar-track {
5656
background: #f1f5f9;
57+
border-radius: 4px;
5758
}
5859

5960
::-webkit-scrollbar-thumb {
60-
background: #cbd5e1;
61+
background: #93c5fd;
6162
border-radius: 4px;
6263
}
6364

6465
::-webkit-scrollbar-thumb:hover {
65-
background: #94a3b8;
66+
background: #60a5fa;
67+
}
68+
69+
::-webkit-scrollbar-thumb:active {
70+
background: #3b82f6;
6671
}

src/pages/PluginDetail.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,20 @@ export default function PluginDetail() {
8484

8585
return (
8686
<div className="min-h-screen bg-white">
87+
{/* 固定的返回按钮 */}
88+
<div className="sticky top-0 z-10 bg-white border-b border-gray-200">
89+
<div className="max-w-3xl mx-auto px-4 py-4">
90+
<Link
91+
to="/"
92+
className="inline-flex items-center gap-2 text-sm font-medium text-gray-600 hover:text-gray-900"
93+
>
94+
<ArrowLeft className="h-4 w-4" />
95+
返回插件列表
96+
</Link>
97+
</div>
98+
</div>
99+
87100
<div className="max-w-3xl mx-auto px-4 py-6 sm:py-8">
88-
{/* 返回按钮 */}
89-
<Link
90-
to="/"
91-
className="inline-flex items-center gap-2 text-sm font-medium text-gray-600 hover:text-gray-900 mb-6"
92-
>
93-
<ArrowLeft className="h-4 w-4" />
94-
返回插件列表
95-
</Link>
96101

97102
{/* 插件信息 */}
98103
<div className="rounded-md border border-gray-200 p-5 mb-6">

0 commit comments

Comments
 (0)