diff --git a/app/components/common/modal_component.html.erb b/app/components/common/modal_component.html.erb index 72cc8b1e5..6dddf87d2 100644 --- a/app/components/common/modal_component.html.erb +++ b/app/components/common/modal_component.html.erb @@ -2,7 +2,7 @@
Po uložení sa vykonajú nasledovné zmeny:
<% if @diff.to_add.present? %>Pridajú sa: <%= format_tags(@diff.to_add) %>
diff --git a/app/javascript/controllers/turbo_content_controller.js b/app/javascript/controllers/turbo_content_controller.js index 5528a3006..4a55dc991 100644 --- a/app/javascript/controllers/turbo_content_controller.js +++ b/app/javascript/controllers/turbo_content_controller.js @@ -1,7 +1,12 @@ import { Controller } from "@hotwired/stimulus"; export default class extends Controller { + connect() { + document.body.style.overflow = "hidden" + } + remove() { + document.body.style.overflow = "" this.element.parentElement.removeAttribute("src") this.element.parentElement.removeAttribute("complete") this.element.remove()