From cf717225d106183b7322b666e9c722afff04bc05 Mon Sep 17 00:00:00 2001 From: xrk Date: Wed, 30 Sep 2020 15:22:30 +0800 Subject: [PATCH] fix: upload rtl style (#26961) --- components/upload/style/rtl.less | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/components/upload/style/rtl.less b/components/upload/style/rtl.less index 27abfe9d2d..d615c330d7 100644 --- a/components/upload/style/rtl.less +++ b/components/upload/style/rtl.less @@ -11,8 +11,7 @@ &&-select-picture-card { .@{upload-prefix-cls}-rtl& { - float: right; - margin-right: 0; + margin-right: auto; margin-left: 8px; } } @@ -97,6 +96,10 @@ &-picture, &-picture-card { + .@{upload-item}-info { + padding: 0; + } + .@{upload-item}-thumbnail { .@{upload-prefix-cls}-list-rtl& { right: 8px; @@ -136,7 +139,7 @@ .@{upload-item}-progress { .@{upload-prefix-cls}-list-rtl& { - padding-right: 56px; + padding-right: 0; padding-left: 0; } } @@ -152,15 +155,7 @@ &-picture-card { &-container { .@{upload-prefix-cls}-list-rtl & { - float: right; - margin: 0 0 8px 8px; - } - } - - .@{upload-item} { - .@{upload-prefix-cls}-list-rtl& { - float: right; - margin: 0 0 8px 8px; + margin: 0 0 @margin-xs @margin-xs; } } @@ -178,11 +173,5 @@ padding: 0; } } - - .@{upload-item}-info { - .@{upload-prefix-cls}-list-rtl& { - padding: 0; - } - } } }