From 0cef1f71e178321b69f82df1b065b414ab9c0920 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Thu, 14 May 2020 17:47:33 -0400 Subject: [PATCH] Updating safe-area-inset css for effected elements --- .../components/bundle_column_error.js | 4 +-- .../gabsocial/components/error_boundary.js | 4 +-- .../components/floating_action_button.js | 20 ++++++++------ .../gabsocial/components/footer_bar.js | 2 +- app/javascript/gabsocial/components/list.js | 7 +++-- .../components/logged_out_navigation_bar.js | 14 +++++----- .../gabsocial/components/navigation_bar.js | 6 ++--- .../components/profile_navigation_bar.js | 10 +++---- .../gabsocial/components/sidebar_xs.js | 7 +++-- app/javascript/styles/global.css | 27 +++++++++++++++++-- 10 files changed, 67 insertions(+), 34 deletions(-) diff --git a/app/javascript/gabsocial/components/bundle_column_error.js b/app/javascript/gabsocial/components/bundle_column_error.js index 2f58dc5d..d3bb8619 100644 --- a/app/javascript/gabsocial/components/bundle_column_error.js +++ b/app/javascript/gabsocial/components/bundle_column_error.js @@ -36,8 +36,8 @@ class BundleColumnError extends PureComponent { return (
-
-
+
+
diff --git a/app/javascript/gabsocial/components/error_boundary.js b/app/javascript/gabsocial/components/error_boundary.js index c9765515..506cfc51 100644 --- a/app/javascript/gabsocial/components/error_boundary.js +++ b/app/javascript/gabsocial/components/error_boundary.js @@ -64,8 +64,8 @@ export default class ErrorBoundary extends PureComponent { return (
-
-
+
+
diff --git a/app/javascript/gabsocial/components/floating_action_button.js b/app/javascript/gabsocial/components/floating_action_button.js index 052e6080..ffd3d2b0 100644 --- a/app/javascript/gabsocial/components/floating_action_button.js +++ b/app/javascript/gabsocial/components/floating_action_button.js @@ -33,14 +33,18 @@ class FloatingActionButton extends PureComponent { const message = intl.formatMessage(messages.gab) return ( -
) } diff --git a/app/javascript/gabsocial/components/footer_bar.js b/app/javascript/gabsocial/components/footer_bar.js index ebf87388..1390ddd3 100644 --- a/app/javascript/gabsocial/components/footer_bar.js +++ b/app/javascript/gabsocial/components/footer_bar.js @@ -52,7 +52,7 @@ class FooterBar extends PureComponent { return (
-
+
{ buttons.map((props) => { const classes = CX({ diff --git a/app/javascript/gabsocial/components/list.js b/app/javascript/gabsocial/components/list.js index a1585c27..1c3b5c47 100644 --- a/app/javascript/gabsocial/components/list.js +++ b/app/javascript/gabsocial/components/list.js @@ -3,6 +3,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes' import Block from './block' import ScrollableList from './scrollable_list' import ListItem from './list_item' +import Dummy from './dummy' export default class List extends ImmutablePureComponent { @@ -32,9 +33,11 @@ export default class List extends ImmutablePureComponent { onLoadMore } = this.props + const Wrapper = !!scrollKey ? ScrollableList : Dummy + return ( - )) } - + ) } diff --git a/app/javascript/gabsocial/components/logged_out_navigation_bar.js b/app/javascript/gabsocial/components/logged_out_navigation_bar.js index 2df276e9..aa6ebf5c 100644 --- a/app/javascript/gabsocial/components/logged_out_navigation_bar.js +++ b/app/javascript/gabsocial/components/logged_out_navigation_bar.js @@ -9,21 +9,21 @@ export default class LoggedOutNavigationBar extends PureComponent { title: PropTypes.string, showBackBtn: PropTypes.bool, } - + render() { return (