use dvh for modal and drawer

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-07-30 16:45:56 +03:00
1 parent 59fe8a7917
commit b8ab7190d2
2 files changed
+4 -3

No files matched your search

+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>