Optimized shopping list header

This commit is contained in:
Bernd Bestel
2020-12-21 16:29:39 +01:00
parent f0d99a5714
commit e97fccd03a
2 changed files with 7 additions and 1 deletions

View File

@@ -545,3 +545,8 @@ $("img.barcode").each(function()
img.attr("src", dummyCanvas.toDataURL("image/png")); img.attr("src", dummyCanvas.toDataURL("image/png"));
}); });
if ($(window).width() < 768)
{
$("#filter-container").removeClass("border-bottom");
}

View File

@@ -72,7 +72,8 @@
</a> </a>
</div> </div>
</div> </div>
<div class="border-top border-bottom my-2 py-1"> <div id="filter-container"
class="border-top border-bottom my-2 py-1">
<div id="table-filter-row" <div id="table-filter-row"
data-status-filter="belowminstockamount" data-status-filter="belowminstockamount"
class="collapse d-md-inline-block normal-message status-filter-message responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"><span class="d-block d-md-none">{{count($missingProducts)}} <i class="fas fa-exclamation-circle"></i></span><span class="d-none d-md-block">{{ $__n(count($missingProducts), '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') }}</span></div> class="collapse d-md-inline-block normal-message status-filter-message responsive-button @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif"><span class="d-block d-md-none">{{count($missingProducts)}} <i class="fas fa-exclamation-circle"></i></span><span class="d-none d-md-block">{{ $__n(count($missingProducts), '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') }}</span></div>