mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +02:00
Fixed hoverpic element if no title element is present
This commit is contained in:
parent
3ee8b26ddf
commit
89d64b7565
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ export default class extends Controller {
|
||||||
trigger: 'hover',
|
trigger: 'hover',
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
container: 'body',
|
container: 'body',
|
||||||
'title': this.element.dataset.title ?? null,
|
'title': this.element.dataset.title ?? '',
|
||||||
content: function () {
|
content: function () {
|
||||||
return '<img class="img-fluid" src="' + thumbnail_url + '" />';
|
return '<img class="img-fluid" src="' + thumbnail_url + '" />';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue