react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Possibility to remove the inline height on time container

Open thibaultauvray opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. I have a problem with the inline CSS height that is set on the time container. My issue seems to be related to #2056.

Even if I set display: none on every disabled time: the inline-height is still set to 360px here. image

And i don't know why a height is set in inline. It annoying for responsive reason.

Describe the solution you'd like having possibility not to put a inline height here.

Additional context image

thibaultauvray avatar Jun 30 '20 15:06 thibaultauvray

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 27 '20 20:12 stale[bot]

I had this same issue with the TimePicker inline height exceeding the DatePicker's height.

<ul class="react-datepicker__time-list" style="height: 274px;">...</ul>

image

A workaround for me was to use !important within the class ul.react-datepicker__time-list.

'ul.react-datepicker__time-list': {
    height: '234px !important'
},

image

FYI, the DatePicker will be shorter in some months that have fewer days, but at least for the months that have the max amount of days, the heights between both the TimePicker and DatePicker will be the same. image

austinlxx avatar Jan 19 '21 19:01 austinlxx