diff --git a/components/table/style/index.less b/components/table/style/index.less index c4ac1f9997..1db6796e5b 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -58,17 +58,10 @@ // Fixed first or last should special process &.@{table-prefix-cls}-cell-fix-left-last, &.@{table-prefix-cls}-cell-fix-right-first { - display: flex; overflow: visible; - > .@{table-prefix-cls}-row-indent, - > .@{table-prefix-cls}-row-expand-icon { - flex: none; - } - .@{table-prefix-cls}-cell-content { display: block; - flex: auto; overflow: hidden; text-overflow: ellipsis; } @@ -424,11 +417,21 @@ text-align: center; } + &-row-indent { + float: left; + height: 1px; + + .@{table-wrapepr-rtl-cls} & { + float: right; + } + } + &-row-expand-icon { .operation-unit(); position: relative; display: inline-flex; box-sizing: border-box; + float: left; width: ceil(@font-size-sm * 1.4); height: ceil(@font-size-sm * 1.4); @@ -443,6 +446,10 @@ transition: all 0.3s; user-select: none; + .@{table-wrapepr-rtl-cls} & { + float: right; + } + &:focus, &:hover, &:active { @@ -492,6 +499,7 @@ .@{table-prefix-cls}-row-indent + & { margin-right: @padding-xs; + margin-top: (@font-size-base * @line-height-base - ceil(@font-size-sm * 1.4)) / 2; .@{table-wrapepr-rtl-cls} & { margin-right: 0;