From b8ab7190d2a1d077e2af67ce9146b0d023b5ed32 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Wed, 29 Jul 2026 00:30:04 +0300 Subject: [PATCH] use dvh for modal and drawer --- app/views/shared/_turbo_drawer.html.erb | 5 +++-- app/views/shared/_turbo_modal_large.html.erb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/shared/_turbo_drawer.html.erb b/app/views/shared/_turbo_drawer.html.erb index 12dd4ba7..6ee20c17 100644 --- a/app/views/shared/_turbo_drawer.html.erb +++ b/app/views/shared/_turbo_drawer.html.erb @@ -1,7 +1,8 @@ +<% offset = local_assigns[:title] ? '45px' : '0px' %>
-
+
<% if local_assigns[:title] %>
@@ -14,7 +15,7 @@ × <% end %> -
+
<%= yield %>
diff --git a/app/views/shared/_turbo_modal_large.html.erb b/app/views/shared/_turbo_modal_large.html.erb index 7a1c841d..d929519c 100644 --- a/app/views/shared/_turbo_modal_large.html.erb +++ b/app/views/shared/_turbo_modal_large.html.erb @@ -10,7 +10,7 @@ ×
<% end %> -
+
<%= yield %>