mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Improved styling of image in structural entity select
This commit is contained in:
parent
08b60cd149
commit
5ea791eac7
3 changed files with 23 additions and 4 deletions
|
@ -83,7 +83,7 @@ export default class extends Controller {
|
|||
}
|
||||
name += "<b>" + escape(data.text) + "</b>";
|
||||
|
||||
return '<div>' + (data.image ? "<img style='max-height: 1.5rem; max-width: 2rem; margin-right: 5px;' ' src='" + data.image + "'/>" : "") + name + '</div>';
|
||||
return '<div>' + (data.image ? "<img class='structural-entity-select-image' style='margin-right: 5px;' ' src='" + data.image + "'/>" : "") + name + '</div>';
|
||||
}
|
||||
|
||||
renderOption(data, escape) {
|
||||
|
@ -117,7 +117,7 @@ export default class extends Controller {
|
|||
|
||||
let image = "";
|
||||
if (data.image) {
|
||||
image = '<img style="max-height: 1.5rem; max-width: 2rem; margin-left: 5px;" src="' + data.image + '"/>';
|
||||
image = '<img class="structural-entity-select-image" style="margin-left: 5px;" src="' + data.image + '"/>';
|
||||
}
|
||||
|
||||
return '<div>' + level_html + escape(data.text) + image + symbol_badge + parent_badge + filter_badge + '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue