diff --git a/app/src/components/Room.js b/app/src/components/Room.js index 668f792..b6bd629 100644 --- a/app/src/components/Room.js +++ b/app/src/components/Room.js @@ -2,11 +2,9 @@ import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import * as appPropTypes from './appPropTypes'; -// import classnames from 'classnames'; import { withRoomContext } from '../RoomContext'; import { withStyles } from '@material-ui/core/styles'; import * as stateActions from '../actions/stateActions'; -// import Draggable from 'react-draggable'; import { idle } from '../utils'; import FullScreen from './FullScreen'; import CookieConsent from 'react-cookie-consent'; @@ -26,7 +24,6 @@ import Notifications from './Notifications/Notifications'; import MeetingDrawer from './MeetingDrawer/MeetingDrawer'; import Democratic from './MeetingViews/Democratic'; import Filmstrip from './MeetingViews/Filmstrip'; -// import Me from './Containers/Me'; import AudioPeers from './PeerAudio/AudioPeers'; import FullScreenView from './VideoContainers/FullScreenView'; import VideoWindow from './VideoWindow/VideoWindow'; @@ -54,12 +51,16 @@ const styles = (theme) => }, message : { - position : 'fixed', - top : '50%', - left : '50%', - transform : 'translateX(-50%) translateY(-50%)', - width : '30vw', - padding : 'theme.unit.spacing * 2' + position : 'absolute', + display : 'flex', + top : '50%', + left : '50%', + transform : 'translateX(-50%) translateY(-50%)', + width : '30vw', + padding : theme.spacing.unit * 2, + flexDirection : 'column', + justifyContent : 'center', + alignItems : 'center' }, menuButton : { @@ -220,7 +221,6 @@ class Room extends React.PureComponent roomClient, room, me, - // amActiveSpeaker, setSettingsOpen, toolAreaOpen, toggleToolArea, @@ -240,7 +240,7 @@ class Room extends React.PureComponent return (
- + This webpage required sound and video to play, please click to allow.
); @@ -343,7 +343,7 @@ class Room extends React.PureComponent aria-label='Account' color='inherit' onClick={() => -{ + { me.loggedIn ? roomClient.logout() : roomClient.login(); }} > diff --git a/app/src/index.css b/app/src/index.css index 7624529..3fbbe8f 100644 --- a/app/src/index.css +++ b/app/src/index.css @@ -17,6 +17,7 @@ html width: 100%; font-family: 'Roboto'; font-weight: 300; + margin : 0; } body @@ -24,6 +25,7 @@ body height: 100%; width: 100%; font-size: 16px; + margin: 0; } #multiparty-meeting