Sheet Modal Swipe Step Max Height

What would be the best approach to give the sheet modal a max height and make the content inside of that modal scroll able?

<div class="sheet-modal" style="height: auto; max-height: 400px">
  <div class="sheet-modal-inner">
    <div class="page-content">
      <!-- scrollable content here -->
    </div>
  </div>
</div>

this happens with only height:auto;


this happens when i do as you describe but i cant scroll the content of page-content