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
This commit is contained in:
commit
b123135df6
@ -1061,3 +1061,7 @@ input[type='number']{
|
||||
.search-menu .ui-menu-item {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.product-card-panel{
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -768,7 +768,7 @@ function partGridTile(part) {
|
||||
var html = `
|
||||
|
||||
<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'>
|
||||
<a href='/part/${part.pk}/'>
|
||||
<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
|
||||
if ((index > 0) && (index % 4 == 0) && (index < data.length)) {
|
||||
html += `</div><div class='row'>`;
|
||||
html += `</div><div class='row full-height'>`;
|
||||
}
|
||||
|
||||
html += partGridTile(row);
|
||||
|
Loading…
Reference in New Issue
Block a user