From ccde8672264f8519639d43045fd41e9ea01171c9 Mon Sep 17 00:00:00 2001 From: Alex Howington Date: Thu, 16 Jul 2015 18:24:40 -0500 Subject: [PATCH] Add .alert-dismissible to Bootstrap flash messages The .alert-dismissible class adds some extra styling to the alert div, most importantly the rule "top: -2px" which vertically centers the × character in the alert div. --- files/app/views/layouts/_messages-bootstrap.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/app/views/layouts/_messages-bootstrap.html.erb b/files/app/views/layouts/_messages-bootstrap.html.erb index 060b04b..c96efc9 100644 --- a/files/app/views/layouts/_messages-bootstrap.html.erb +++ b/files/app/views/layouts/_messages-bootstrap.html.erb @@ -1,6 +1,6 @@ <% flash.each do |name, msg| %> <% if msg.is_a?(String) %> -
"> +
"> × <%= content_tag :div, msg, :id => "flash_#{name}" %>