Skip to content

Commit

Permalink
Fix Table sort style of right-aligned column
Browse files Browse the repository at this point in the history
when size is small
  • Loading branch information
afc163 committed Oct 10, 2018
1 parent 9e72ca1 commit 46f4a3e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@
}
}

&.@{table-prefix-cls}-align-right {
padding-right: 30px;
// Repeat the class selector for prority
// https://github.com/ant-design/ant-design/commit/55a13a11fcea23fc4b5694cad7e2c32edc9128ee#r30842052
&.@{table-prefix-cls}-align-right.@{table-prefix-cls}-align-right {
&.@{table-prefix-cls}-column-has-sorters,
&.@{table-prefix-cls}-column-has-filters {
padding-right: 30px;
}

&.@{table-prefix-cls}-column-has-sorters.@{table-prefix-cls}-column-has-filters {
padding-right: 54px;
Expand Down

3 comments on commit 46f4a3e

@afc163
Copy link
Member Author

@afc163 afc163 commented on 46f4a3e Oct 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sillyfeng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@afc163 这个会更新到3.10.1 吗 ?

@afc163
Copy link
Member Author

@afc163 afc163 commented on 46f4a3e Oct 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.