From 6d2ad5c324af37f3837c5319ac2a073f4d3aa637 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 12 Jun 2019 19:39:28 +0800 Subject: [PATCH] :lipstick: optimize bordered table header scrollbar style continue after #17065 --- components/table/style/index.less | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/components/table/style/index.less b/components/table/style/index.less index edcd32d705..5ec1764532 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -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;