Skip to content

Commit

Permalink
fix: transfer rtl (#24560)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed May 29, 2020
1 parent e6b8e24 commit 11bbd72
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
37 changes: 11 additions & 26 deletions components/transfer/style/rtl.less
Expand Up @@ -24,45 +24,30 @@
}

&-header {
.@{transfer-prefix-cls}-rtl & {
right: 0;
left: auto;
}
&-title {
> *:not(:last-child) {
.@{transfer-prefix-cls}-rtl & {
right: auto;
left: 12px;
margin-right: 0;
margin-left: 4px;
}
}

.@{ant-prefix}-checkbox-wrapper + span {
.@{transfer-prefix-cls}-rtl & {
padding-right: 8px;
padding-left: 0;
}
.@{transfer-prefix-cls}-rtl & {
right: 0;
left: auto;
}
}

&-body {
&-search-wrapper {
&-title {
.@{transfer-prefix-cls}-rtl & {
right: 0;
left: auto;
text-align: left;
}
}
}

&-content {
&-item {
> span {
.@{transfer-prefix-cls}-rtl & {
padding-left: 0;
}
}
&-text {
> *:not(:last-child) {
.@{transfer-prefix-cls}-rtl & {
padding-right: 8px;
padding-left: 0;
margin-right: 0;
margin-left: 8px;
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions components/tree/style/rtl.less
Expand Up @@ -45,4 +45,10 @@
}
}
}
// >>> Checkbox
& &-checkbox {
.@{tree-prefix-cls}-rtl& {
margin: ((@tree-title-height - @checkbox-size) / 2) 0 0 8px;
}
}
}

0 comments on commit 11bbd72

Please sign in to comment.