From 7d67cfd1e71dfc77cf6cd41b1ddd02ec3c6aeea5 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Thu, 28 Jul 2022 17:15:29 +0100 Subject: [PATCH] fix: incorrect centring of deleted user avatars in notification list (#3569) --- framework/core/less/forum/NotificationList.less | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/core/less/forum/NotificationList.less b/framework/core/less/forum/NotificationList.less index cbb9f4657..df09c00f2 100644 --- a/framework/core/less/forum/NotificationList.less +++ b/framework/core/less/forum/NotificationList.less @@ -140,10 +140,11 @@ grid-area: avatar; } - // Since images don't have baselines, aligning against the baseline won't work. - // Instead we need to do some manual hackery to fix then, otherwise they won't - // be correctly vertically aligned. - img.Avatar { + // Since images and empty elements don't have baselines, aligning against the + // baseline won't work. Instead we need to do some manual hackery to fix then, + // otherwise they won't be correctly vertically aligned. + img.Avatar, + .Avatar:empty { align-self: flex-start; margin-top: -2px; }