mirror of
https://github.com/openvk/openvk
synced 2025-06-07 15:54:39 +03:00
fix: wide avatars at tips
This commit is contained in:
parent
a64b903f15
commit
7e22964c2e
3 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue