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

@ -75,7 +75,7 @@ final class DocumentsPresenter extends OpenVKPresenter
$this->template->locale_string = "you_have_x_documents";
if ($current_tab != 0) {
$this->template->locale_string = "x_documents_in_tab";
} else if ($owner_id < 0) {
} elseif ($owner_id < 0) {
$this->template->locale_string = "group_has_x_documents";
}

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)