From 652374ff4cd759d76a0aa323f4c2e1730224842a Mon Sep 17 00:00:00 2001 From: einq7 <50612752+AlanCutFlim@users.noreply.github.com> Date: Thu, 12 Nov 2020 23:11:21 +0800 Subject: [PATCH] fix: DateRangePicker hover effect overflow (#27731) * fix: DateRangePicker hover effect overflow * fix: update rtl style --- components/date-picker/style/panel.less | 4 ++-- components/date-picker/style/rtl.less | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/date-picker/style/panel.less b/components/date-picker/style/panel.less index 4d57191a98..4238e66200 100644 --- a/components/date-picker/style/panel.less +++ b/components/date-picker/style/panel.less @@ -302,12 +302,12 @@ .@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-start .@{cellClassName}::after { - right: -6px - @border-width-base; + right: -5px - @border-width-base; left: 0; } .@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after { right: 0; - left: -6px - @border-width-base; + left: -5px - @border-width-base; } // Hover with range start & end diff --git a/components/date-picker/style/rtl.less b/components/date-picker/style/rtl.less index c4ac8bcd0a..1308c4c684 100644 --- a/components/date-picker/style/rtl.less +++ b/components/date-picker/style/rtl.less @@ -149,13 +149,13 @@ .@{cellClassName}::after { .@{picker-prefix-cls}-panel-rtl & { right: 0; - left: -6px - @border-width-base; + left: -5px - @border-width-base; } } .@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after { .@{picker-prefix-cls}-panel-rtl & { - right: -6px - @border-width-base; + right: -5px - @border-width-base; left: 0; } }