summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_results_item.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2015-12-08 23:40:49 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2015-12-08 23:40:49 +0500
commitbf9814f2653575a4c3f375c887eff484fcd1e706 (patch)
treeacb09a106bba92243d7b1db278fe4da698082563 /web/react/components/search_results_item.jsx
parentc12c0533dfd5cb468f89cf6c04ccf15044128d95 (diff)
downloadchat-bf9814f2653575a4c3f375c887eff484fcd1e706.tar.gz
chat-bf9814f2653575a4c3f375c887eff484fcd1e706.tar.bz2
chat-bf9814f2653575a4c3f375c887eff484fcd1e706.zip
Closing RHS if jump is clicked for archives
Diffstat (limited to 'web/react/components/search_results_item.jsx')
-rw-r--r--web/react/components/search_results_item.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/react/components/search_results_item.jsx b/web/react/components/search_results_item.jsx
index 731e047b1..cd8359df5 100644
--- a/web/react/components/search_results_item.jsx
+++ b/web/react/components/search_results_item.jsx
@@ -19,6 +19,11 @@ export default class SearchResultsItem extends React.Component {
e.preventDefault();
EventHelpers.emitPostFocusEvent(this.props.post.id);
+
+ if ($(window).width() < 768) {
+ $('.sidebar--right').removeClass('move--left');
+ $('.inner__wrap').removeClass('move--left');
+ }
}
render() {