{prepend}
From 42e9d5a3602259884eb0236a62375566d8c2cce2 Mon Sep 17 00:00:00 2001
From: mgabdev <>
Date: Wed, 17 Jul 2019 23:59:28 -0400
Subject: [PATCH 16/19] Fix issue with notification badge number not showing on
mobile
only hide first descendants of tab bar btn (the title of the tab) instead of all span children
---
app/javascript/styles/gabsocial/components/tabs-bar.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/javascript/styles/gabsocial/components/tabs-bar.scss b/app/javascript/styles/gabsocial/components/tabs-bar.scss
index 1fcae0d4..825ebadf 100644
--- a/app/javascript/styles/gabsocial/components/tabs-bar.scss
+++ b/app/javascript/styles/gabsocial/components/tabs-bar.scss
@@ -138,7 +138,7 @@
height: 38px;
border-bottom: 4px solid $gab-default-text-light;
}
- & span {display: none;}
+ & > span {display: none;}
}
&.home {
padding: 16px 0 0 25px;
From b1637266519fda39943d1852f39f63915adbb546 Mon Sep 17 00:00:00 2001
From: mgabdev <>
Date: Thu, 18 Jul 2019 00:17:36 -0400
Subject: [PATCH 17/19] Removed floating action button from columns area
---
.../features/ui/components/columns_area.js | 19 ++-----------------
.../ui/containers/columns_area_container.js | 11 +----------
2 files changed, 3 insertions(+), 27 deletions(-)
diff --git a/app/javascript/gabsocial/features/ui/components/columns_area.js b/app/javascript/gabsocial/features/ui/components/columns_area.js
index 6715e86c..34981a6a 100644
--- a/app/javascript/gabsocial/features/ui/components/columns_area.js
+++ b/app/javascript/gabsocial/features/ui/components/columns_area.js
@@ -1,13 +1,12 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { defineMessages, injectIntl } from 'react-intl';
+import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, getLink } from './tabs_bar';
import { Link } from 'react-router-dom';
-import { me } from 'gabsocial/initial_state';
import BundleContainer from '../containers/bundle_container';
import ColumnLoading from './column_loading';
@@ -16,33 +15,20 @@ import BundleColumnError from './bundle_column_error';
import { Compose, Notifications, HomeTimeline, CommunityTimeline, HashtagTimeline, DirectTimeline, FavouritedStatuses, ListTimeline } from '../../ui/util/async-components';
import Icon from 'gabsocial/components/icon';
-const messages = defineMessages({
- publish: { id: 'compose_form.publish', defaultMessage: 'Gab' },
-});
-
-const shouldHideFAB = path => path.match(/^\/statuses\/|^\/search|^\/getting-started/);
-
export default @(component => injectIntl(component, { withRef: true }))
class ColumnsArea extends ImmutablePureComponent {
- static contextTypes = {
- router: PropTypes.object.isRequired,
- };
-
static propTypes = {
intl: PropTypes.object.isRequired,
columns: ImmutablePropTypes.list.isRequired,
- isModalOpen: PropTypes.bool.isRequired,
children: PropTypes.node,
layout: PropTypes.object,
};
render () {
- const { columns, children, isModalOpen, intl, onOpenCompose } = this.props;
+ const { columns, children, intl } = this.props;
const layout = this.props.layout || {LEFT:null,RIGHT:null};
- const floatingActionButton = shouldHideFAB(this.context.router.history.location.pathname) ? null :
;
-
return (
@@ -65,7 +51,6 @@ class ColumnsArea extends ImmutablePureComponent {
{layout.RIGHT}
- {me && floatingActionButton}