Skip to content

Commit

Permalink
style: optimized Table action position in rtl (ant-design#32283)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Sep 24, 2021
1 parent f0d9abb commit 8d407f9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/table/style/rtl.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -73,7 +80,7 @@
// ============================ Sorter ============================
&-column-sorter {
.@{table-wrapepr-rtl-cls} & {
margin-right: @padding-xs;
margin-right: 4px;
margin-left: 0;
}
}
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 8d407f9

Please sign in to comment.