diff --git a/public/css/grocy.css b/public/css/grocy.css old mode 100644 new mode 100755 index bd9fae7e..6a2fb7e9 --- a/public/css/grocy.css +++ b/public/css/grocy.css @@ -396,6 +396,12 @@ input::-webkit-inner-spin-button { } } +@media (max-width: 767.98px) { + .width-xs-sm-100 { + width: 100%; + } +} + body.fixed-nav { padding-top: 54px; } diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js old mode 100644 new mode 100755 index a864ff63..d038c193 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -229,9 +229,9 @@ function RefreshStatistics() Grocy.Api.Get('stock/volatile?expiring_days=' + nextXDays, function(result) { - $("#info-expiring-products").text(__n(result.expiring_products.length, '%s product expires', '%s products expiring') + ' ' + __n(nextXDays, 'within the next day', 'within the next %s days')); - $("#info-expired-products").text(__n(result.expired_products.length, '%s product is already expired', '%s products are already expired')); - $("#info-missing-products").text(__n(result.missing_products.length, '%s product is below defined min. stock amount', '%s products are below defined min. stock amount')); + $("#info-expiring-products").html('' + result.expiring_products.length + ' ' + __n(result.expiring_products.length, '%s product expires', '%s products expiring') + ' ' + __n(nextXDays, 'within the next day', 'within the next %s days') + ''); + $("#info-expired-products").html('' + result.expired_products.length + ' ' + __n(result.expired_products.length, '%s product is already expired', '%s products are already expired') + ''); + $("#info-missing-products").html('' + result.missing_products.length + ' ' + __n(result.missing_products.length, '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') + ''); }, function(xhr) { diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php old mode 100644 new mode 100755 index 75428490..ddd27f6e --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -17,22 +17,27 @@