From fddb88f5b8269bfe890f956fb413d0209ab654e8 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Sun, 17 Nov 2019 17:24:23 -0300 Subject: [PATCH] Use instead of position absolute Some components still use position fixed. This could change in the future. --- src/client/components/App.tsx | 74 +++++++++++++++---------- src/client/components/Media.tsx | 2 +- src/client/components/Notifications.tsx | 2 +- src/client/components/Side.tsx | 27 +++++++++ src/client/components/Toolbar.tsx | 28 +++++----- src/client/containers/App.test.tsx | 19 ++++++- src/scss/_alert.scss | 19 +++---- src/scss/_chat.scss | 2 +- src/scss/_media.scss | 6 +- src/scss/_notification.scss | 10 ++-- src/scss/_toolbar.scss | 11 ++-- src/scss/_video.scss | 11 ++-- src/scss/style.scss | 37 +++++++++++++ 13 files changed, 167 insertions(+), 81 deletions(-) create mode 100644 src/client/components/Side.tsx diff --git a/src/client/components/App.tsx b/src/client/components/App.tsx index 90c9d7f..0ed5177 100644 --- a/src/client/components/App.tsx +++ b/src/client/components/App.tsx @@ -1,16 +1,18 @@ +import classnames from 'classnames' import map from 'lodash/map' import React from 'react' import Peer from 'simple-peer' import { Message } from '../actions/ChatActions' -import { Notification, dismissNotification } from '../actions/NotifyActions' +import { dismissNotification, Notification } from '../actions/NotifyActions' import { TextMessage } from '../actions/PeerActions' import { AddStreamPayload } from '../actions/StreamActions' import * as constants from '../constants' import Chat from './Chat' +import { Media } from './Media' import Notifications from './Notifications' +import { Side } from './Side' import Toolbar from './Toolbar' import Video from './Video' -import { Media } from './Media' export interface AppProps { active: string | null @@ -75,47 +77,61 @@ export default class App extends React.PureComponent { return (
- + + + + - + + -
-
) diff --git a/src/client/components/Media.tsx b/src/client/components/Media.tsx index 101180f..b965774 100644 --- a/src/client/components/Media.tsx +++ b/src/client/components/Media.tsx @@ -101,7 +101,7 @@ export const AutoplayMessage = React.memo( function Autoplay(props: AutoplayProps) { return ( - The browser has blocked video autoplay on this page. + Your browser has blocked video autoplay on this page. To continue with your call, please press the play button: