From 68cfd8615e3536e60e36d8e53f6aa428d3bee3d0 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 18 Oct 2021 12:19:16 +1100 Subject: [PATCH 1/2] Improvements to "grid view" for parts list - Display 5 tiles per line - Reduce padding - Add border --- InvenTree/InvenTree/static/css/inventree.css | 7 +++++++ InvenTree/templates/js/translated/part.js | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index eca502425a..fca9326a82 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -1074,6 +1074,13 @@ input[type='number']{ margin-top: 0.5rem; } +.product-card { + width: 20%; + padding: 5px; + min-height: 25px; +} + .product-card-panel{ height: 100%; + border: 1px solid #ccc; } diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index d7747a244f..f4ee237d84 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -778,7 +778,7 @@ function partGridTile(part) { var html = ` -
+