From 2df4b3f0ce05b698e75f0b963cd86f900edba3ec Mon Sep 17 00:00:00 2001 From: "nogafam.es Admin" Date: Sun, 24 Oct 2021 01:21:49 +0200 Subject: [PATCH] Re-modelling webApp for Instante --- .../features/ui/components/columns_area.js | 23 +++++++++++-------- .../features/ui/components/compose_panel.js | 2 -- .../features/ui/components/tabs_bar.js | 13 +---------- .../styles/mastodon/components.scss | 6 ----- 4 files changed, 14 insertions(+), 30 deletions(-) diff --git a/app/javascript/mastodon/features/ui/components/columns_area.js b/app/javascript/mastodon/features/ui/components/columns_area.js index 193637113..3af2757c3 100644 --- a/app/javascript/mastodon/features/ui/components/columns_area.js +++ b/app/javascript/mastodon/features/ui/components/columns_area.js @@ -30,6 +30,7 @@ import { import Icon from 'mastodon/components/icon'; import ComposePanel from './compose_panel'; import NavigationPanel from './navigation_panel'; +import SearchContainer from 'mastodon/features/compose/containers/search_container'; import { supportsPassiveEvents } from 'detect-passive-events'; import { scrollRight } from '../../../scroll'; @@ -226,25 +227,27 @@ class ColumnsArea extends ImmutablePureComponent {
{children}
); - return ( -
-
+ /*
{renderComposePanel && }
-
+
*/ + + return ( +
+ +
+
+ +
+
+ {content}
-
-
- -
-
- {floatingActionButton}
); diff --git a/app/javascript/mastodon/features/ui/components/compose_panel.js b/app/javascript/mastodon/features/ui/components/compose_panel.js index 3d0c48c7a..c66f8d3fd 100644 --- a/app/javascript/mastodon/features/ui/components/compose_panel.js +++ b/app/javascript/mastodon/features/ui/components/compose_panel.js @@ -1,7 +1,6 @@ import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; -import SearchContainer from 'mastodon/features/compose/containers/search_container'; import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container'; import NavigationContainer from 'mastodon/features/compose/containers/navigation_container'; import LinkFooter from './link_footer'; @@ -25,7 +24,6 @@ class ComposePanel extends React.PureComponent { render() { return (
- diff --git a/app/javascript/mastodon/features/ui/components/tabs_bar.js b/app/javascript/mastodon/features/ui/components/tabs_bar.js index a023bcf34..c041c5e3e 100644 --- a/app/javascript/mastodon/features/ui/components/tabs_bar.js +++ b/app/javascript/mastodon/features/ui/components/tabs_bar.js @@ -7,14 +7,7 @@ import { isUserTouching } from '../../../is_mobile'; import Icon from 'mastodon/components/icon'; import NotificationsCounterIcon from './notifications_counter_icon'; -export const links = [ - , - , - , - , - , - , -]; +export const links = []; export function getIndex (path) { return links.findIndex(link => link.props.to === path); @@ -74,10 +67,6 @@ class TabsBar extends React.PureComponent { return (
- -
); diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 5752712ef..033f599cc 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -2442,12 +2442,6 @@ a.account__display-name { } } -@media screen and (min-width: 600px + (285px * 2) + (10px * 2)) { - .tabs-bar { - display: none; - } -} - .icon-with-badge { position: relative;