Skip to content

Commit

Permalink
fix: RangePicker time column sometime not scroll (#47542)
Browse files Browse the repository at this point in the history
* fix: style fixing of time scroll

* chore: bump rc-picker
  • Loading branch information
zombieJ committed Feb 23, 2024
1 parent dccdb37 commit 08d432f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions components/date-picker/style/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '""',
},

Expand Down Expand Up @@ -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(),
},
},
};
};
Expand Down

0 comments on commit 08d432f

Please sign in to comment.