From e5319bd1df8b716a84f80bc61193932c02dfcac0 Mon Sep 17 00:00:00 2001 From: fish yu <501254061@qq.com> Date: Tue, 10 Nov 2020 14:58:23 +0800 Subject: [PATCH] fix: RangePicker align active-bar with small size (#27673) * fix: RangePicker align active-bar with small size * fix: RangePicker align active-bar with small size on RTL --- components/date-picker/style/index.less | 4 ++++ components/date-picker/style/rtl.less | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/components/date-picker/style/index.less b/components/date-picker/style/index.less index cd1730cca7..6e3aacccff 100644 --- a/components/date-picker/style/index.less +++ b/components/date-picker/style/index.less @@ -209,6 +209,10 @@ .@{picker-prefix-cls}-clear { right: @input-padding-horizontal-sm; } + + .@{picker-prefix-cls}-active-bar { + margin-left: @input-padding-horizontal-sm; + } } } diff --git a/components/date-picker/style/rtl.less b/components/date-picker/style/rtl.less index 7316c0bfcd..c4ac8bcd0a 100644 --- a/components/date-picker/style/rtl.less +++ b/components/date-picker/style/rtl.less @@ -60,6 +60,14 @@ margin-left: 0; } } + + &.@{picker-prefix-cls}-small { + .@{picker-prefix-cls}-active-bar { + .@{picker-prefix-cls}-rtl& { + margin-right: @input-padding-horizontal-sm; + } + } + } } // ======================== Ranges ========================