mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-08 01:53:34 +08:00
Change another approach to fix #4637
avoid issues like #4750 and #4753 caused by old way
This commit is contained in:
parent
f786f607cf
commit
fb421f10e0
@ -485,12 +485,29 @@
|
|||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix https://github.com/ant-design/ant-design/issues/4637
|
||||||
|
// avoid column misalign in #4750 and #4753
|
||||||
|
&-fixed-header &-scroll {
|
||||||
|
position: relative;
|
||||||
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||||
|
&:after {
|
||||||
|
background: @table-head-background-color;
|
||||||
|
position: absolute;
|
||||||
|
content: '0';
|
||||||
|
width: 18px;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
padding: 16px 0;
|
||||||
|
user-select: none;
|
||||||
|
color: transparent;
|
||||||
|
border-radius: 0 @border-radius-base 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&-fixed-header &-scroll &-header {
|
&-fixed-header &-scroll &-header {
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
margin-bottom: -20px;
|
margin-bottom: -20px;
|
||||||
margin-right: -18px;
|
|
||||||
padding-right: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fix firefox scrollbar bug */
|
/* fix firefox scrollbar bug */
|
||||||
|
Loading…
Reference in New Issue
Block a user