mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 14:53:16 +08:00
Merge pull request #17066 from ant-design/optimize-table-style
style: optimize bordered table header scrollbar style
This commit is contained in:
commit
1a34dcde8d
@ -604,11 +604,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
&-bordered&-fixed-header &-scroll &-header::-webkit-scrollbar {
|
||||
border: 1px solid @border-color-split;
|
||||
border-width: 1px 1px 0 0;
|
||||
}
|
||||
|
||||
&-hide-scrollbar {
|
||||
// https://github.com/ant-design/ant-design/issues/4637
|
||||
// https://stackoverflow.com/a/54101063
|
||||
@ -619,6 +614,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
// optimize header style of borderd table after hide extra scrollbar
|
||||
&-bordered&-fixed-header &-scroll &-header {
|
||||
&::-webkit-scrollbar {
|
||||
border: 1px solid @border-color-split;
|
||||
border-width: 1px 1px 1px 0;
|
||||
}
|
||||
&.@{table-prefix-cls}-hide-scrollbar .@{table-prefix-cls}-thead > tr > th:last-child {
|
||||
border-right-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&-fixed-left,
|
||||
&-fixed-right {
|
||||
position: absolute;
|
||||
|
Loading…
Reference in New Issue
Block a user