From 02a17ca6bd97bd5bbbd566bb7b2fbfabbdb86b4b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 8 Apr 2016 12:31:13 +0200 Subject: [PATCH] Fixed user profile --- com.woltlab.wcf/templates/userHeader.tpl | 105 +++++++++--------- .../install/files/style/ui/userProfile.scss | 13 ++- 2 files changed, 62 insertions(+), 56 deletions(-) diff --git a/com.woltlab.wcf/templates/userHeader.tpl b/com.woltlab.wcf/templates/userHeader.tpl index 9a4b702c1f..f2c07b578a 100644 --- a/com.woltlab.wcf/templates/userHeader.tpl +++ b/com.woltlab.wcf/templates/userHeader.tpl @@ -16,63 +16,64 @@ {/if}>
-
+
{if $user->userID == $__wcf->user->userID} - {@$user->getAvatar()->getImageTag(128)} + {@$user->getAvatar()->getImageTag(128)} {else} - {@$user->getAvatar()->getImageTag(128)} - {/if} -
- -
-

- {$user->username}{if $user->banned} {/if} -

- {if MODULE_USER_RANK} - {if $user->getUserTitle()} - {$user->getUserTitle()} - {/if} - {if $user->getRank() && $user->getRank()->rankImage} - {@$user->getRank()->getImage()} - {/if} + {@$user->getAvatar()->getImageTag(128)} {/if} -
- -
-
    - {hascontent} - - {/hascontent} - - {if $__wcf->session->getPermission('user.profile.canReportContent')} -
  • - {/if} - - {if $user->userID != $__wcf->user->userID} - {if $user->isAccessible('canViewEmailAddress') || $__wcf->session->getPermission('admin.user.canEditMailAddress')} -
  • - {elseif $user->isAccessible('canMail') && $__wcf->session->getPermission('user.profile.canMail')} -
  • + +
    +

    + {$user->username}{if $user->banned} {/if} +

    + {if MODULE_USER_RANK} + {if $user->getUserTitle()} + {$user->getUserTitle()} + {/if} + {if $user->getRank() && $user->getRank()->rankImage} + {@$user->getRank()->getImage()} {/if} {/if} - - {event name='buttons'} - - {if $isAccessible && $__wcf->user->userID != $user->userID && ($__wcf->session->getPermission('admin.user.canBanUser') || $__wcf->session->getPermission('admin.user.canDisableAvatar') || $__wcf->session->getPermission('admin.user.canDisableSignature') || ($__wcf->session->getPermission('admin.general.canUseAcp') && $__wcf->session->getPermission('admin.user.canEditUser')){event name='moderationDropdownPermissions'})} - - {/if} -
-
+
+ + +
+ +
+
diff --git a/wcfsetup/install/files/style/ui/userProfile.scss b/wcfsetup/install/files/style/ui/userProfile.scss index 20ad3dd8de..40599d8217 100644 --- a/wcfsetup/install/files/style/ui/userProfile.scss +++ b/wcfsetup/install/files/style/ui/userProfile.scss @@ -29,7 +29,13 @@ } } - .userAvatar { + .contentHeader { + align-items: center; + color: $wcfHeaderText; + width: 100%; + } + + .contentHeaderIcon { background-color: $wcfHeaderBackground; border-radius: 50%; left: 0; @@ -46,9 +52,8 @@ } } - .contentHeader { - color: $wcfHeaderText; - flex: 1 1 auto; + .contentTitle + span { + margin-top: 5px; } .buttonGroupNavigation { -- 2.20.1