From: Alexander Ebert Date: Wed, 29 Jun 2022 13:29:06 +0000 (+0200) Subject: Preserve the minimum height of the user header without ranks X-Git-Tag: 5.5.0_RC_3~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b76f5bb3b6829414cd38cc6b48557cd54022db4;p=GitHub%2FWoltLab%2FWCF.git 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/ --- 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;