From 8d407f90dd99042d13327dd62aed05f8a75a558c Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Fri, 24 Sep 2021 16:53:13 +0800 Subject: [PATCH] style: optimized Table action position in rtl (#32283) --- components/table/style/rtl.less | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/components/table/style/rtl.less b/components/table/style/rtl.less index 82758f291a..2aba565e3c 100644 --- a/components/table/style/rtl.less +++ b/components/table/style/rtl.less @@ -32,6 +32,13 @@ } } + &:not(:last-child):not(.@{table-prefix-cls}-selection-column):not(.@{table-prefix-cls}-row-expand-icon-cell):not([colspan])::before { + .@{table-wrapepr-rtl-cls} & { + right: auto; + left: 0; + } + } + .@{table-wrapepr-rtl-cls} & { text-align: right; } @@ -73,7 +80,7 @@ // ============================ Sorter ============================ &-column-sorter { .@{table-wrapepr-rtl-cls} & { - margin-right: @padding-xs; + margin-right: 4px; margin-left: 0; } } @@ -93,10 +100,9 @@ } } - &-filter-trigger-container { + &-filter-trigger { .@{table-wrapepr-rtl-cls} & { - right: auto; - left: 0; + margin: -4px 4px -4px (-@table-padding-horizontal / 2); } }