- style fixes

- add part description as mouse-over text
This commit is contained in:
Oliver 2021-11-04 17:02:52 +11:00
parent 9cfcb6579f
commit b1598cfd10
2 changed files with 7 additions and 2 deletions

View File

@ -560,6 +560,11 @@
transition: 0.1s;
}
.search-autocomplete-item {
border-top: 1px solid #EEE;
margin-bottom: 2px;
}
.modal {
overflow: hidden;
z-index: 9999;

View File

@ -159,9 +159,9 @@ function inventreeDocReady() {
$(this).data('ui-autocomplete')._renderItem = function(ul, item) {
var html = `
<div class=''>
<div class='search-autocomplete-item' title='${item.data.description}'>
<a href='/part/${item.id}/'>
<span><img class='hover-img-thumb' src='${item.thumbnail || "/static/img/blank_image.png"}'> ${item.label}</span>
<span style='padding-right: 10px;'><img class='hover-img-thumb' src='${item.thumbnail || "/static/img/blank_image.png"}'> ${item.label}</span>
</a>
<span class='flex' style='flex-grow: 1;'></span>
`;