From 9b76f5bb3b6829414cd38cc6b48557cd54022db4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 29 Jun 2022 15:29:06 +0200 Subject: [PATCH] Preserve the minimum height of the user header without ranks The `.userMenuItemSingleLine` class is shared with other elements that are not as tall as the user header. The `min-height: 0` will cause the user header to collapse too much when the user rank module is disabled. See https://www.woltlab.com/community/thread/296134-darstellungsfehler-im-kontrollzentrum-ohne-rangmodul/ --- com.woltlab.wcf/templates/pageHeaderUser.tpl | 2 +- wcfsetup/install/files/style/ui/userMenu.scss | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/pageHeaderUser.tpl b/com.woltlab.wcf/templates/pageHeaderUser.tpl index b60589b380..cd2c59ec95 100644 --- a/com.woltlab.wcf/templates/pageHeaderUser.tpl +++ b/com.woltlab.wcf/templates/pageHeaderUser.tpl @@ -27,7 +27,7 @@
{lang}wcf.user.controlPanel{/lang}
-
+
{@$__wcf->getUserProfileHandler()->getUserProfile()->getAvatar()->getImageTag(48)}
diff --git a/wcfsetup/install/files/style/ui/userMenu.scss b/wcfsetup/install/files/style/ui/userMenu.scss index a047a0c667..27d5963a2e 100644 --- a/wcfsetup/install/files/style/ui/userMenu.scss +++ b/wcfsetup/install/files/style/ui/userMenu.scss @@ -142,7 +142,10 @@ html:not(.touch) .userMenuButton { &.userMenuItemSingleLine { grid-template-areas: "image content"; grid-template-rows: auto; - min-height: 0; + + &:not(.userMenuItemUserHeader) { + min-height: 0; + } .userMenuItemContent { align-self: center; -- 2.20.1