mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-29 13:10:06 +02:00
Make small user pictures hoverable to show larger version of profile picture.
This commit is contained in:
parent
0063d360ce
commit
04c6d582f2
3 changed files with 24 additions and 2 deletions
|
@ -234,8 +234,9 @@ class LogDataTable implements DataTableTypeInterface
|
|||
$img_url = $this->userAvatarHelper->getAvatarSmURL($user);
|
||||
|
||||
return sprintf(
|
||||
'<img src="%s" class="rounded" style="height: 1.2rem;"> <a href="%s">%s</a>',
|
||||
'<img src="%s" data-thumbnail="%s" class="rounded" style="height: 1.2rem;" data-controller="elements--hoverpic"> <a href="%s">%s</a>',
|
||||
$img_url,
|
||||
$this->userAvatarHelper->getAvatarMdURL($user),
|
||||
$this->urlGenerator->generate('user_info', ['id' => $user->getID()]),
|
||||
htmlentities($user->getFullName(true))
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue