mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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:
parent
3b763e95fd
commit
80d2fc4b9e
@ -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%;
|
||||||
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user