mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Show higher resolution thumbnail when hover over a table picture.
Also use thumbnails for attachment edit preview.
This commit is contained in:
parent
a545e04554
commit
4c7767feed
9 changed files with 35 additions and 12 deletions
|
@ -166,9 +166,10 @@ class PartsDataTable implements DataTableTypeInterface
|
|||
}
|
||||
|
||||
return sprintf(
|
||||
'<img alt="%s" src="%s" class="%s">',
|
||||
'<img alt="%s" src="%s" data-thumbnail="%s" class="%s">',
|
||||
'Part image',
|
||||
$this->attachmentURLGenerator->getThumbnailURL($preview_attachment),
|
||||
$this->attachmentURLGenerator->getThumbnailURL($preview_attachment, 'thumbnail_md'),
|
||||
'img-fluid hoverpic'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue