diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2016-02-03 23:54:48 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2016-02-03 23:54:48 +0500 |
commit | f8d3f9d4ecbb86c01f4cb13a5e41029b2330cc73 (patch) | |
tree | 66b3ccb41bee086005245b8f51dad48e33461520 /web/react/components/channel_loader.jsx | |
parent | 9bba6c79882d1f5d14b98052caf59a11fc2388d5 (diff) | |
download | chat-f8d3f9d4ecbb86c01f4cb13a5e41029b2330cc73.tar.gz chat-f8d3f9d4ecbb86c01f4cb13a5e41029b2330cc73.tar.bz2 chat-f8d3f9d4ecbb86c01f4cb13a5e41029b2330cc73.zip |
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 712d6885f..cb1da90de 100644 --- a/web/react/components/channel_loader.jsx +++ b/web/react/components/channel_loader.jsx @@ -84,6 +84,16 @@ export default 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'); |