diff --git a/components/table/style/index.less b/components/table/style/index.less index c33d65733..9691759a6 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -485,12 +485,29 @@ 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 { overflow: scroll; padding-bottom: 20px; margin-bottom: -20px; - margin-right: -18px; - padding-right: 18px; } /* fix firefox scrollbar bug */