Skip to content

Commit

Permalink
Fixes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
lentschi committed Jun 7, 2024
1 parent 4174bdd commit 98142a1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
22 changes: 18 additions & 4 deletions app/assets/stylesheets/bootstrap_and_overrides.css.less
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,26 @@ td.symbol, th.symbol {
.partused .symbol { color: tint(@articlePartusedColor, @nonessentialDim); }
.unavailable .symbol { color: @articleUnavailColor; }

.article-form .icon-warning-sign {
margin-top: 8px;
margin-left: 10px;
color: @articleCustomUnitWarning;
.article-form {
.icon-warning-sign {
margin-top: 8px;
margin-left: 10px;
color: @articleCustomUnitWarning;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

/* Firefox */
input[type=number] {
-moz-appearance: textfield;
}
}


// hide symbols completely on small screens to save space
@media (max-width: 768px) {
.symbol {
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_article_fields_units.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
.fold-line
= f.input :billing_unit, as: :select, collection: [], input_html: {'data-initial-value': article.billing_unit, class: 'input-medium'}, include_blank: false
.fold-line
= f.input :group_order_granularity, input_html: {class: 'input-mini'}
= f.input :group_order_granularity, input_html: {class: 'input-mini', step: 0.001}
= f.input :group_order_unit, as: :select, collection: [], input_html: {'data-initial-value': article.group_order_unit, class: 'input-medium'}, label: '×'.html_safe, include_blank: false

0 comments on commit 98142a1

Please sign in to comment.