Merge branch 'RC1-1.0' of https://github.com/havfo/multiparty-meeting into RC1-1.0

master
Håvar Aambø Fosstveit 2018-11-21 11:32:16 +01:00
commit 2062b40269
3 changed files with 16 additions and 11 deletions

View File

@ -15,14 +15,14 @@ class Me extends React.Component
controlsVisible : false controlsVisible : false
}; };
handleMouseOver = () => handleMouseOver = () =>
{ {
this.setState({ this.setState({
controlsVisible : true controlsVisible : true
}); });
}; };
handleMouseOut = () => handleMouseOut = () =>
{ {
this.setState({ this.setState({
controlsVisible : false controlsVisible : false
@ -108,13 +108,11 @@ class Me extends React.Component
> >
<div className={classnames('view-container', 'webcam')}> <div className={classnames('view-container', 'webcam')}>
{connected ? {connected ?
<div className={classnames('controls', { <div className={classnames('controls', 'visible')}>
visible : this.state.controlsVisible
})}
>
<div <div
className={classnames('button', 'mic', micState, { className={classnames('button', 'mic', micState, {
disabled : me.audioInProgress disabled : me.audioInProgress,
visible : micState == 'off' || this.state.controlsVisible
})} })}
onClick={() => onClick={() =>
{ {
@ -124,7 +122,8 @@ class Me extends React.Component
<div <div
className={classnames('button', 'webcam', webcamState, { className={classnames('button', 'webcam', webcamState, {
disabled : me.webcamInProgress disabled : me.webcamInProgress,
visible : webcamState == 'off' || this.state.controlsVisible
})} })}
onClick={() => onClick={() =>
{ {

View File

@ -18,7 +18,9 @@ if (process.env.NODE_ENV === 'development')
{ {
const reduxLogger = createLogger( const reduxLogger = createLogger(
{ {
predicate : (getState, action) => action.type !== 'SET_PRODUCER_VOLUME', // filter VOLUME level actions from log
predicate : (getState, action) => ! (action.type == 'SET_PRODUCER_VOLUME'
|| action.type == 'SET_CONSUMER_VOLUME'),
duration : true, duration : true,
timestamp : false, timestamp : false,
level : 'log', level : 'log',

View File

@ -33,7 +33,7 @@
&.visible { &.visible {
opacity: 1; opacity: 1;
} }
> .button { > .button {
flex: 0 0 auto; flex: 0 0 auto;
margin: 0.2vmin; margin: 0.2vmin;
@ -43,13 +43,17 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: rgba(#000, 0.5); background-color: rgba(#000, 0.5);
cursor: pointer; cursor: pointer;
opacity: 0;
transition-property: opacity, background-color; transition-property: opacity, background-color;
transition-duration: 0.15s; transition-duration: 0.15s;
&.visible {
opacity: 0.85;
}
+desktop() { +desktop() {
width: 24px; width: 24px;
height: 24px; height: 24px;
opacity: 0.85;
&:hover { &:hover {
opacity: 1; opacity: 1;