From 3d556cda046d7e19a17667e51dad6acb3490f7f5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 25 May 2013 20:04:25 +0200 Subject: [PATCH] Small optimization --- .../template/notificationListOustanding.tpl | 2 +- wcfsetup/install/files/style/dropdown.less | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/template/notificationListOustanding.tpl b/com.woltlab.wcf/template/notificationListOustanding.tpl index 60c4b2a207..92a3b28912 100644 --- a/com.woltlab.wcf/template/notificationListOustanding.tpl +++ b/com.woltlab.wcf/template/notificationListOustanding.tpl @@ -1,5 +1,5 @@ {foreach from=$notifications[notifications] item=notification} -
  • +
  • {@$notification[event]->getAuthor()->getAvatar()->getImageTag(24)} diff --git a/wcfsetup/install/files/style/dropdown.less b/wcfsetup/install/files/style/dropdown.less index 1efcb5204b..8737e7d8aa 100644 --- a/wcfsetup/install/files/style/dropdown.less +++ b/wcfsetup/install/files/style/dropdown.less @@ -177,8 +177,11 @@ color: @wcfDropdownColor; cursor: pointer; display: block; + max-width: 300px; + overflow: hidden; padding: @wcfGapTiny @wcfGapMedium; text-decoration: none; + text-overflow: ellipsis; white-space: nowrap; .textShadow(@wcfDropdownBackgroundColor); @@ -188,6 +191,11 @@ .textShadow(@wcfDropdownHoverBackgroundColor); } + + > div > h3 { + overflow: hidden; + text-overflow: ellipsis; + } } > label { @@ -201,6 +209,16 @@ font-size: @wcfSmallFontSize; } } + + &.notificationItem { + > a { + white-space: normal; + + > div > h3 { + font-size: @wcfSmallFontSize; + } + } + } } } @@ -218,6 +236,7 @@ > a, > span { + max-width: none; white-space: normal; } } -- 2.20.1