Skip to content

Commit 157ef24

Browse files
committed
fix: 算法思路面板添加滚动条支持
1 parent d5ad689 commit 157ef24

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/components/AlgorithmIntro.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@
4040
padding: 12px;
4141
font-size: 12px;
4242
line-height: 1.6;
43+
max-height: 280px;
44+
overflow-y: auto;
45+
}
46+
47+
.intro-content::-webkit-scrollbar {
48+
width: 4px;
49+
}
50+
51+
.intro-content::-webkit-scrollbar-track {
52+
background: #f0f0f0;
53+
}
54+
55+
.intro-content::-webkit-scrollbar-thumb {
56+
background: #ccc;
57+
border-radius: 2px;
4358
}
4459

4560
.intro-section {

0 commit comments

Comments
 (0)