diff --git a/app/assets/stylesheets/orders.css.scss b/app/assets/stylesheets/orders.css.scss index f5628bd..6c64fa2 100644 --- a/app/assets/stylesheets/orders.css.scss +++ b/app/assets/stylesheets/orders.css.scss @@ -2,11 +2,6 @@ // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ -//.form-control.input-lg{ -// height:66px; -// text-align: center; -//} - .big-form-button { height: 65px; width: 65px; @@ -16,3 +11,20 @@ height: 66px; text-align: center; } + +.form_row_image { + height: 100px; + width: 100px; + margin-left: auto; + margin-right: auto; + position: relative; +} + +.form_row_image img { + position: absolute; + top: 0; + bottom: 0; + left: 0; + top: 0; + margin: auto; +} diff --git a/app/views/order_items/_order_item.html.erb b/app/views/order_items/_order_item.html.erb index 12d8bfd..20a25fe 100644 --- a/app/views/order_items/_order_item.html.erb +++ b/app/views/order_items/_order_item.html.erb @@ -1,9 +1,11 @@
- <%= image_tag product.avatar %> +
+ <%= image_tag product.avatar %> +
- <%= content_tag :h3, "#{product.name} - #{euro(product.price)}" %> + <%= content_tag :h4, "#{product.name} (#{euro(product.price)})" %> <%= f.counter :count, skip_label: true, wrapper_class: "input-group", class: "row_counter" %> <%= f.fields_for :product do |product| %> <%= product.hidden_field :price_cents, class: :price %>