From 87ca3069bb1ff0b5143a9bc5bb511b39430d1fc2 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 28 Mar 2019 10:43:01 -0600 Subject: [PATCH] Misc code cleanup --- src/components/structures/IndicatorScrollbar.js | 4 ++-- src/components/views/rooms/RoomBreadcrumbs.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/structures/IndicatorScrollbar.js b/src/components/structures/IndicatorScrollbar.js index 4dc77d73b9..263a0a22ba 100644 --- a/src/components/structures/IndicatorScrollbar.js +++ b/src/components/structures/IndicatorScrollbar.js @@ -88,10 +88,10 @@ export default class IndicatorScrollbar extends React.Component { if (this.props.trackHorizontalOverflow) { this.setState({ // Offset from absolute position of the container - leftIndicatorOffset: hasLeftOverflow ? `${this._scrollElement.scrollLeft}px` : 0, + leftIndicatorOffset: hasLeftOverflow ? `${this._scrollElement.scrollLeft}px` : '0', // Negative because we're coming from the right - rightIndicatorOffset: hasRightOverflow ? `-${this._scrollElement.scrollLeft}px` : 0, + rightIndicatorOffset: hasRightOverflow ? `-${this._scrollElement.scrollLeft}px` : '0', }); } } diff --git a/src/components/views/rooms/RoomBreadcrumbs.js b/src/components/views/rooms/RoomBreadcrumbs.js index e3e1f2fc1e..3a71ec4ec2 100644 --- a/src/components/views/rooms/RoomBreadcrumbs.js +++ b/src/components/views/rooms/RoomBreadcrumbs.js @@ -134,8 +134,7 @@ export default class RoomBreadcrumbs extends React.Component { ); }); return ( - + { avatars } );