Fixed mobile issues in message group list
authorMarcel Werk <burntime@woltlab.com>
Tue, 23 Aug 2016 17:17:46 +0000 (19:17 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 23 Aug 2016 17:17:52 +0000 (19:17 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js
wcfsetup/install/files/style/ui/messageGroup.scss

index 1ec0911764700608313dda67da370e4039561569..f29cc392a0094a94eae02c181dac2655e0d33ec9 100644 (file)
@@ -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');
+                                       }
                                }
                        }
                },
index 9c89207d68e8aeecd8512f755cff9bf3434df111..f6c8a1c9099ec7323e90df0ba64505e894e15bb8 100644 (file)
                                }
                        }
                        
-                       &:hover .columnStats {
-                               > dl {
-                                       visibility: visible;
-                               }
-                               
-                               .messageGroupListStatsSimple {
-                                       display: none;
+                       @include screen-lg {
+                               &:hover .columnStats {
+                                       > dl {
+                                               visibility: visible;
+                                       }
+                                       
+                                       .messageGroupListStatsSimple {
+                                               display: none;
+                                       }
                                }
                        }
                }