From: Marcel Werk Date: Tue, 23 Aug 2016 17:17:46 +0000 (+0200) Subject: Fixed mobile issues in message group list X-Git-Tag: 3.0.0_Beta_1~555 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0f167f3132c54097aee170d953f9e9c6321bb22;p=GitHub%2FWoltLab%2FWCF.git Fixed mobile issues in message group list --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index 1ec0911764..f29cc392a0 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -210,12 +210,14 @@ define( shadow = DomTraverse.childByClass(parent, 'mobileLinkShadow'); if (shadow === null) { - shadow = elCreate('a'); - shadow.className = 'mobileLinkShadow'; - shadow.href = elBySel(linkSelector, element).href; - - parent.appendChild(shadow); - parent.classList.add('mobileLinkShadowContainer'); + if (elBySel(linkSelector, element).href) { + shadow = elCreate('a'); + shadow.className = 'mobileLinkShadow'; + shadow.href = elBySel(linkSelector, element).href; + + parent.appendChild(shadow); + parent.classList.add('mobileLinkShadowContainer'); + } } } }, diff --git a/wcfsetup/install/files/style/ui/messageGroup.scss b/wcfsetup/install/files/style/ui/messageGroup.scss index 9c89207d68..f6c8a1c909 100644 --- a/wcfsetup/install/files/style/ui/messageGroup.scss +++ b/wcfsetup/install/files/style/ui/messageGroup.scss @@ -22,13 +22,15 @@ } } - &:hover .columnStats { - > dl { - visibility: visible; - } - - .messageGroupListStatsSimple { - display: none; + @include screen-lg { + &:hover .columnStats { + > dl { + visibility: visible; + } + + .messageGroupListStatsSimple { + display: none; + } } } }