From 90a494eed2f1da8227a7e2668524fd19fa76a7ad Mon Sep 17 00:00:00 2001 From: George Tsiolis Date: Fri, 19 Oct 2018 12:56:12 +0300 Subject: Limit flash notice width on fixed and fluid layout --- app/views/layouts/_flash.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/layouts/_flash.html.haml') diff --git a/app/views/layouts/_flash.html.haml b/app/views/layouts/_flash.html.haml index 8bd5708d490..2cdaa85bdaa 100644 --- a/app/views/layouts/_flash.html.haml +++ b/app/views/layouts/_flash.html.haml @@ -6,5 +6,5 @@ -# Don't show a flash message if the message is nil - if value %div{ class: "flash-#{key}" } - %div{ class: "#{container_class} #{extra_flash_class}" } + %div{ class: "#{(container_class unless fluid_layout)} #{(extra_flash_class unless @no_container)} #{@content_class}" } %span= value -- cgit v1.2.3