mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Fixes for part "card" view
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
:root {
 | 
					:root {
 | 
				
			||||||
    --primary-color: #335d88;
 | 
					    --primary-color: #335d88;
 | 
				
			||||||
    --secondary-color: #dcdcda;
 | 
					    --secondary-color: #e4dfdf;
 | 
				
			||||||
    --highlight-color: #f5efe8;
 | 
					    --highlight-color: #f5efe8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    --border-color: #ccc;
 | 
					    --border-color: #ccc;
 | 
				
			||||||
@@ -1106,10 +1106,14 @@ input[type='number']{
 | 
				
			|||||||
    width: 20%;
 | 
					    width: 20%;
 | 
				
			||||||
    padding: 5px;
 | 
					    padding: 5px;
 | 
				
			||||||
    min-height: 25px;
 | 
					    min-height: 25px;
 | 
				
			||||||
 | 
					    background-color: transparent;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.product-card-panel{
 | 
					.product-card-panel{
 | 
				
			||||||
    height: 100%;
 | 
					    height: 100%;
 | 
				
			||||||
    border: 1px solid #ccc;
 | 
					    margin-bottom: 5px;    
 | 
				
			||||||
    box-shadow: 2px 2px #DDD;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.borderless {
 | 
				
			||||||
 | 
					    border: none;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -791,7 +791,7 @@ function partGridTile(part) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    var html = `
 | 
					    var html = `
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    <div class='product-card card'>
 | 
					    <div class='card product-card borderless'>
 | 
				
			||||||
        <div class='panel product-card-panel'>
 | 
					        <div class='panel product-card-panel'>
 | 
				
			||||||
            <div class='panel-heading'>
 | 
					            <div class='panel-heading'>
 | 
				
			||||||
                <a href='/part/${part.pk}/'>
 | 
					                <a href='/part/${part.pk}/'>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user