Basing on tailwindcss 2 modal example https://alpinetoolbox.com/examples/modal I make modal dialog with header/footer/ Content with many rows. I try to set content with scrolling bar, like
<div style="height : calc( 100vh - 120 ) !important;" >
<div class="modal-header flex justify-between items-center pb-2">
...
</div>
<div class="modal-content py-4 text-left px-6 overflow-y-auto " style="height : calc( 100vh - 320 ) !important;">
But failed. Please take a look at codepen : https://codepen.io/sergeynilov/pen/vYyPrrE
MODIFIED BLOCK : I got scrolling as I need if to set in content block style definition.
<div class="modal-content py-4 text-left px-6" style="overflow-y: auto; max-height: 680px;">
Next I can make custom class (now it is not implemented yet) and put
overflow-y: auto; max-height: 680px
into it. And for any device I will make @media block with different height. That is the way I usually with with scss. But I suppose tailwindcss has better decision for it?
Thanks!