Preserve the minimum height of the user header without ranks
authorAlexander Ebert <ebert@woltlab.com>
Wed, 29 Jun 2022 13:29:06 +0000 (15:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 29 Jun 2022 13:29:06 +0000 (15:29 +0200)
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
wcfsetup/install/files/style/ui/userMenu.scss

index b60589b380c7748448a5791dec5b49b4f9a480fb..cd2c59ec9510c4b9e89c3006f5adc4eda139133a 100644 (file)
@@ -27,7 +27,7 @@
                                                <div class="userMenuTitle">{lang}wcf.user.controlPanel{/lang}</div>
                                        </div>
                                        <div class="userMenuContent">
-                                               <div class="userMenuItem{if !MODULE_USER_RANK} userMenuItemSingleLine{/if}">
+                                               <div class="userMenuItem{if !MODULE_USER_RANK} userMenuItemSingleLine userMenuItemUserHeader{/if}">
                                                        <div class="userMenuItemImage">
                                                                {@$__wcf->getUserProfileHandler()->getUserProfile()->getAvatar()->getImageTag(48)}
                                                        </div>
index a047a0c6679b2846a9e5d64e70b93678c9824bd6..27d5963a2e49dc076f6389104a36aab96c2ad371 100644 (file)
@@ -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;