fix: wide avatars at tips

This commit is contained in:
mrilyew 2025-05-23 23:44:16 +03:00 committed by Alexander Minkin
parent a64b903f15
commit 7e22964c2e
3 changed files with 7 additions and 2 deletions

View file

@ -3921,6 +3921,11 @@ hr {
height: 25px;
}
.object_fit_ava {
object-fit: cover;
object-position: top;
}
.like_tooltip_wrapper .like_tooltip_body a {
height: 25px;
}

View file

@ -902,7 +902,7 @@ tippy.delegate('body', {
that._likesList.items.forEach(item => {
final_template.find('.like_tooltip_body .like_tooltip_body_grid').append(`
<a title="${escapeHtml(item.first_name + " " + item.last_name)}" href='/id${item.id}'><img src='${item.photo_50}' alt='.'></a>
<a title="${escapeHtml(item.first_name + " " + item.last_name)}" href='/id${item.id}'><img class="object_fit_ava" src='${item.photo_50}' alt='.'></a>
`)
})
that.setContent(final_template.nodes[0].outerHTML)