From e616ffc5d60acafb67dadf90e396226d408d0cda Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 21 Nov 2016 10:03:55 +0100 Subject: Fix responsive layout breakpoint, replace mentions column with notifications --- .../components/features/notifications/index.jsx | 39 ++++++++++++++-------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'app/assets/javascripts/components/features/notifications') diff --git a/app/assets/javascripts/components/features/notifications/index.jsx b/app/assets/javascripts/components/features/notifications/index.jsx index 9c8b07dea..00feeece7 100644 --- a/app/assets/javascripts/components/features/notifications/index.jsx +++ b/app/assets/javascripts/components/features/notifications/index.jsx @@ -22,7 +22,8 @@ const Notifications = React.createClass({ propTypes: { notifications: ImmutablePropTypes.list.isRequired, - dispatch: React.PropTypes.func.isRequired + dispatch: React.PropTypes.func.isRequired, + trackScroll: React.PropTypes.bool }, mixins: [PureRenderMixin], @@ -41,19 +42,31 @@ const Notifications = React.createClass({ }, render () { - const { intl, notifications } = this.props; - - return ( - - -
-
- {notifications.map(item => )} -
-
-
-
+ const { intl, notifications, trackScroll } = this.props; + + const scrollableArea = ( +
+
+ {notifications.map(item => )} +
+
); + + if (trackScroll) { + return ( + + + {scrollableArea} + + + ); + } else { + return ( + + {scrollableArea} + + ); + } } }); -- cgit