Skip to content

Commit a2f0d6d

Browse files
author
luchunyu
committed
fix(table): update table scrollbar style
1 parent 3974ca6 commit a2f0d6d

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

src/components/table/index.css

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,11 @@
5151
}
5252

5353
.c-scroll__thead {
54-
-ms-overflow-style: none;
55-
overflow-x: auto;
56-
-ms-scroll-chaining: none;
57-
overscroll-behavior: none;
54+
overflow-x: hidden;
5855

5956
& table {
6057
table-layout: fixed;
6158
}
62-
63-
&::-webkit-scrollbar {
64-
display: none;
65-
}
6659
}
6760

6861
.c-table__body table {
@@ -75,22 +68,6 @@
7568
.c-scroll__tbody,
7669
.c-scrolltable {
7770
overflow-x: auto;
78-
-ms-scroll-chaining: none;
79-
overscroll-behavior: none;
80-
81-
&::-webkit-scrollbar {
82-
width: 5px;
83-
height: 5px;
84-
}
85-
86-
&::-webkit-scrollbar-thumb {
87-
background: #ced3d9;
88-
border-radius: 30px;
89-
}
90-
91-
&::-webkit-scrollbar-track {
92-
background: #eaeced;
93-
}
9471

9572
& table {
9673
table-layout: fixed;
@@ -200,22 +177,6 @@
200177

201178
.c-table__body {
202179
overflow-y: auto;
203-
-ms-scroll-chaining: none;
204-
overscroll-behavior: none;
205-
206-
&::-webkit-scrollbar {
207-
width: 5px;
208-
height: 5px;
209-
}
210-
211-
&::-webkit-scrollbar-thumb {
212-
background: #ced3d9;
213-
border-radius: 30px;
214-
}
215-
216-
&::-webkit-scrollbar-track {
217-
background: #eaeced;
218-
}
219180
}
220181

221182
.c-table__all.c-table {
@@ -340,10 +301,7 @@
340301
& .c-table__body {
341302
border-bottom: 0;
342303
-ms-overflow-style: none;
343-
344-
&::-webkit-scrollbar {
345-
display: none;
346-
}
304+
overflow: hidden;
347305
}
348306
}
349307

0 commit comments

Comments
 (0)