diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-02-04 07:26:05 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-02-04 07:26:05 -0500 |
commit | 87e6357265422cc8549c39bc3fe3b52c6731fba5 (patch) | |
tree | 978461ca48954d9e4d1b926234e201150ceaece7 /web/react/components/channel_loader.jsx | |
parent | 8d27d2a1f73f41cacdaeaddd5912e21067e26b95 (diff) | |
parent | f8d3f9d4ecbb86c01f4cb13a5e41029b2330cc73 (diff) | |
download | chat-87e6357265422cc8549c39bc3fe3b52c6731fba5.tar.gz chat-87e6357265422cc8549c39bc3fe3b52c6731fba5.tar.bz2 chat-87e6357265422cc8549c39bc3fe3b52c6731fba5.zip |
Merge pull request #2062 from asaadmahmoodspin/ui-improvements
Multiple UI Improvements
Diffstat (limited to 'web/react/components/channel_loader.jsx')
-rw-r--r-- | web/react/components/channel_loader.jsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx index 15571ad93..174c8c4e1 100644 --- a/web/react/components/channel_loader.jsx +++ b/web/react/components/channel_loader.jsx @@ -128,6 +128,16 @@ class ChannelLoader extends React.Component { } }); + $('body').on('mouseenter mouseleave', '.search-item__container .post', function mouseOver(ev) { + if (ev.type === 'mouseenter') { + $(this).closest('.search-item__container').find('.date-separator').addClass('hovered--after'); + $(this).closest('.search-item__container').next('div').find('.date-separator').addClass('hovered--before'); + } else { + $(this).closest('.search-item__container').find('.date-separator').removeClass('hovered--after'); + $(this).closest('.search-item__container').next('div').find('.date-separator').removeClass('hovered--before'); + } + }); + $('body').on('mouseenter mouseleave', '.post.post--comment.same--root', function mouseOver(ev) { if (ev.type === 'mouseenter') { $(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--comment'); |