summaryrefslogtreecommitdiffstats
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
parentc12c0533dfd5cb468f89cf6c04ccf15044128d95 (diff)
downloadchat-bf9814f2653575a4c3f375c887eff484fcd1e706.tar.gz
chat-bf9814f2653575a4c3f375c887eff484fcd1e706.tar.bz2
chat-bf9814f2653575a4c3f375c887eff484fcd1e706.zip
Closing RHS if jump is clicked for archives
-rw-r--r--web/react/components/search_results_item.jsx5
-rw-r--r--web/sass-files/sass/partials/_content.scss1
2 files changed, 6 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() {
diff --git a/web/sass-files/sass/partials/_content.scss b/web/sass-files/sass/partials/_content.scss
index 4bfdb7a09..da75bc61b 100644
--- a/web/sass-files/sass/partials/_content.scss
+++ b/web/sass-files/sass/partials/_content.scss
@@ -1,6 +1,7 @@
@charset "UTF-8";
.inner__wrap {
+ @include single-transition(all, 0.5s, ease);
&.move--left {
margin-right: 400px;
.search-bar__container {