uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.65k stars 6.08k forks source link

lack of inline layout responsiveness #2676

Open karaliunas opened 1 year ago

karaliunas commented 1 year ago

Expected behaviour

Tell us what should happen.

There should be a way to add styles to text inside table td/th elements. When used inline, appended to flexible container currently it is impossible to style selected days with background circles because style will extend through the width of td element. Our goal is to maintain fixed amount of width (regular circle) and distribute extra space equally between days. It would be possible to achieve that if we could wrap text inside td elements with span element and add styles to span element, not the td element.

Actual behaviour

Tell us what happens instead. Styles are added directly to td elements limits ability to manipulate how selected or current day looks

Datepicker version used

1.9.0

Example code

Current situation with used in responsive context - td elements expand and all styles appended to them accordingly. https://codepen.io/gka/pen/WNgExMX