Small adjustments to make it usable in admin section

This commit is contained in:
Jean-Baptiste Bellet
2022-10-17 16:07:55 +02:00
parent 519c15a9d5
commit 9997fe26fc
3 changed files with 4 additions and 1 deletions

View File

@@ -2,6 +2,6 @@
- if defined? flashes
- flashes.each do |type, msg|
%alert.animate-show{"data-controller": "flash"}
%div{type: "#{type}", class: "alert-box #{type == 'error' ? 'alert' : type}"}
.flash{type: "#{type}", class: "alert-box #{type == 'error' ? 'alert' : type}"}
%span= msg
%a.small.close{"data-action": "click->flash#close"} ×

View File

@@ -11,6 +11,8 @@
- if flash[:success]
.flash.success= flash[:success]
= render partial: "shared/flashes"
= render partial: "spree/layouts/admin/progress_spinner"
%header#header{"data-hook" => ""}

View File

@@ -38,6 +38,7 @@
font-size: 120%;
color: $color-1;
font-weight: 600;
margin-top: 0;
&.notice { background-color: rgba($color-notice, 0.8) }
&.success { background-color: rgba($color-success, 0.8) }