[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:
David Cook
2023-09-14 09:37:10 +10:00
parent 99da60921f
commit 2e6e083667
2 changed files with 3 additions and 4 deletions

View File

@@ -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>
&nbsp;
%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

View File

@@ -29,6 +29,7 @@
.button {
margin: 0;
padding: 0.875rem; // Compact buttons inside table
white-space: nowrap;
}
.toggle-bought {