Skip to content

Commit

Permalink
style: Added small indications for muted mic tally
Browse files Browse the repository at this point in the history
  • Loading branch information
KvelaGorrrrnio committed Nov 10, 2021
1 parent 803ffda commit c9a266f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion client/assets/css/MicTally.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body.v-mic-tally {
cursor: pointer;
}

.c-mic-tally__status:active {
.c-mic-tally__status:active:not(.muted) {
background-color: #888888;
}

Expand All @@ -60,6 +60,10 @@ body.v-mic-tally {
color: white;
}

.c-mic-tally__status.muted {
cursor: not-allowed;
}

.c-mic-tally__label {
display: block;
color: white;
Expand Down
2 changes: 1 addition & 1 deletion client/components/MicTally.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
const isOn = (fader.pgmOn || fader.voOn) && !fader.muteOn
return (
<li className="c-mic-tally" key={index}>
<div onClick={() => this.toggleFader(index)} className={`c-mic-tally__status${isOn ? ' on': ''} `}>
<div onClick={() => this.toggleFader(index)} className={`c-mic-tally__status${isOn ? ' on': ''}${fader.muteOn ? ' muted' : ''}`}>
<div className="c-mic-tally__status__content">
{ isOn ? 'ON' : 'OFF' }
</div>
Expand Down

0 comments on commit c9a266f

Please sign in to comment.