mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Implement hoverpic using stimulus.
This commit is contained in:
parent
9519150fb9
commit
671e0944a2
6 changed files with 25 additions and 10 deletions
|
@ -89,7 +89,7 @@ final class AttachmentDataTable implements DataTableTypeInterface
|
|||
}
|
||||
|
||||
return sprintf(
|
||||
'<img alt="%s" src="%s" data-thumbnail="%s" class="%s" data-title="%s">',
|
||||
'<img alt="%s" src="%s" data-thumbnail="%s" class="%s" data-title="%s" data-controller="elements--hoverpic">',
|
||||
'Part image',
|
||||
$this->attachmentURLGenerator->getThumbnailURL($context),
|
||||
$this->attachmentURLGenerator->getThumbnailURL($context, 'thumbnail_md'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue