mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
[fixup] Fix Update button sizing
By disabling line wrap we can consistently predict how it will appear. The longest translation we currently have is 14 characters so this should be fine.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
%tr
|
||||
%td{colspan:"2"}
|
||||
%td
|
||||
%button#update-button.secondary.radius.small{"ng-class" => "{ alert: form.$dirty && form.$valid }"}<
|
||||
=# Trimmed whitespace (angle brackets) to ensure first word doesn't wrap after icon
|
||||
%i.ofn-i_023-refresh>
|
||||
|
||||
%button#update-button.secondary.radius.small{"ng-class" => "{ alert: form.$dirty && form.$valid }"}
|
||||
%i.ofn-i_023-refresh
|
||||
= t(:orders_form_update_cart)
|
||||
%td
|
||||
%td#empty-cart.text-center
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
.button {
|
||||
margin: 0;
|
||||
padding: 0.875rem; // Compact buttons inside table
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.toggle-bought {
|
||||
|
||||
Reference in New Issue
Block a user