Merge pull request #2068 from rocheparadox/master

css for part to occupy full height - fix for bug Inventree#1848

(cherry picked from commit b123135df6)
This commit is contained in:
Oliver 2021-09-22 09:06:03 +10:00
parent 3b763e95fd
commit 80d2fc4b9e
2 changed files with 6 additions and 2 deletions

View File

@ -1061,3 +1061,7 @@ input[type='number']{
.search-menu .ui-menu-item { .search-menu .ui-menu-item {
margin-top: 0.5rem; margin-top: 0.5rem;
} }
.product-card-panel{
height: 100%;
}

View File

@ -768,7 +768,7 @@ function partGridTile(part) {
var html = ` var html = `
<div class='col-sm-3 card'> <div class='col-sm-3 card'>
<div class='panel panel-default panel-inventree'> <div class='panel panel-default panel-inventree product-card-panel'>
<div class='panel-heading'> <div class='panel-heading'>
<a href='/part/${part.pk}/'> <a href='/part/${part.pk}/'>
<b>${part.full_name}</b> <b>${part.full_name}</b>
@ -1007,7 +1007,7 @@ function loadPartTable(table, url, options={}) {
// Force a new row every 4 columns, to prevent visual issues // Force a new row every 4 columns, to prevent visual issues
if ((index > 0) && (index % 4 == 0) && (index < data.length)) { if ((index > 0) && (index % 4 == 0) && (index < data.length)) {
html += `</div><div class='row'>`; html += `</div><div class='row full-height'>`;
} }
html += partGridTile(row); html += partGridTile(row);