use dvh for modal and drawer

This commit is contained in:
Alex Turchyn
2026-07-29 00:30:04 +03:00
committed by Pete Matsyburka
parent 59fe8a7917
commit b8ab7190d2
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
<a href="#" class="text-xl" data-action="click:turbo-modal#close">&times;</a>
</div>
<% end %>
<div class="w-full md:w-[590px] overflow-y-auto" style="max-height: calc(100vh - 14px - 45px)">
<div class="w-full md:w-[590px] overflow-y-auto" style="max-height: calc(100vh - 14px - 45px); max-height: calc(100dvh - 14px - 45px)">
<%= yield %>
</div>
</div>