mirror of
https://github.com/openvk/openvk
synced 2025-07-04 06:49:50 +03:00
fix: wide avatars at tips
This commit is contained in:
parent
a9d7ff808a
commit
8afc7c8c5c
3 changed files with 7 additions and 2 deletions
|
@ -3921,6 +3921,11 @@ hr {
|
||||||
height: 25px;
|
height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.object_fit_ava {
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: top;
|
||||||
|
}
|
||||||
|
|
||||||
.like_tooltip_wrapper .like_tooltip_body a {
|
.like_tooltip_wrapper .like_tooltip_body a {
|
||||||
height: 25px;
|
height: 25px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -902,7 +902,7 @@ tippy.delegate('body', {
|
||||||
|
|
||||||
that._likesList.items.forEach(item => {
|
that._likesList.items.forEach(item => {
|
||||||
final_template.find('.like_tooltip_body .like_tooltip_body_grid').append(`
|
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)
|
that.setContent(final_template.nodes[0].outerHTML)
|
||||||
|
|
Loading…
Reference in a new issue