Fix flashes display after grid introduction

Closes #5
This commit is contained in:
2024-01-17 21:57:18 +01:00
parent 11ecd8eaed
commit 1227c54e0e
5 changed files with 31 additions and 21 deletions

View File

@@ -93,7 +93,7 @@ module ApplicationHelper
flash.map do |entry, message|
tag.div class: "flash #{entry}" do
tag.div(sanitize(message)) + tag.button(sanitize("×"), tabindex: -1,
onclick: "this.parentElement.style.display='none';")
onclick: "this.parentElement.remove();")
end
end.join.html_safe
end