From 7e22964c2eed1eacfa450e63e3d2612bc076087c Mon Sep 17 00:00:00 2001
From: mrilyew <99399973+mrilyew@users.noreply.github.com>
Date: Fri, 23 May 2025 23:44:16 +0300
Subject: [PATCH] fix: wide avatars at tips
---
Web/Presenters/DocumentsPresenter.php | 2 +-
Web/static/css/main.css | 5 +++++
Web/static/js/al_wall.js | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Web/Presenters/DocumentsPresenter.php b/Web/Presenters/DocumentsPresenter.php
index 78f17bfc..dce7e4e3 100644
--- a/Web/Presenters/DocumentsPresenter.php
+++ b/Web/Presenters/DocumentsPresenter.php
@@ -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";
}
diff --git a/Web/static/css/main.css b/Web/static/css/main.css
index 1d96fed3..38e32431 100644
--- a/Web/static/css/main.css
+++ b/Web/static/css/main.css
@@ -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;
}
diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js
index e6ed2031..048c46af 100644
--- a/Web/static/js/al_wall.js
+++ b/Web/static/js/al_wall.js
@@ -902,7 +902,7 @@ tippy.delegate('body', {
that._likesList.items.forEach(item => {
final_template.find('.like_tooltip_body .like_tooltip_body_grid').append(`
-
+
`)
})
that.setContent(final_template.nodes[0].outerHTML)