From 08d432fa418860b4a3e82c05620988f95a309477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Fri, 23 Feb 2024 11:32:04 +0800 Subject: [PATCH] fix: RangePicker time column sometime not scroll (#47542) * fix: style fixing of time scroll * chore: bump rc-picker --- components/date-picker/style/panel.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/components/date-picker/style/panel.ts b/components/date-picker/style/panel.ts index 0d393025d2..29cb910d15 100644 --- a/components/date-picker/style/panel.ts +++ b/components/date-picker/style/panel.ts @@ -571,7 +571,7 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => { '&::after': { display: 'block', - height: token.calc(timeColumnHeight).sub(timeCellHeight).equal(), + height: token.calc('100%').sub(timeCellHeight).equal(), content: '""', }, @@ -629,14 +629,6 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => { }, }, }, - // https://github.com/ant-design/ant-design/issues/39227 - [`&-datetime-panel ${componentCls}-time-panel-column:after`]: { - height: token - .calc(timeColumnHeight) - .sub(timeCellHeight) - .add(token.calc(paddingXXS).mul(2)) - .equal(), - }, }, }; };