Merge pull request #8426 from jitsi/tavram/gradient-condition
fix(subject) remove gradient if no info in topbar
This commit is contained in:
commit
13bc9863cb
|
@ -14,12 +14,15 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
||||||
|
|
||||||
&.visible {
|
&.visible {
|
||||||
top: 0px;
|
top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.gradient {
|
||||||
|
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||||
|
}
|
||||||
|
|
||||||
&-text {
|
&-text {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,9 +57,14 @@ class Subject extends Component<Props> {
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
const { _hideConferenceTimer, _showParticipantCount, _showSubject, _subject, _visible } = this.props;
|
const { _hideConferenceTimer, _showParticipantCount, _showSubject, _subject, _visible } = this.props;
|
||||||
|
let className = `subject ${_visible ? 'visible' : ''}`;
|
||||||
|
|
||||||
|
if (!_hideConferenceTimer || _showParticipantCount || _showSubject) {
|
||||||
|
className += ' gradient';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className = { `subject ${_visible ? 'visible' : ''}` }>
|
<div className = { className }>
|
||||||
{ _showSubject && <span className = 'subject-text'>{ _subject }</span>}
|
{ _showSubject && <span className = 'subject-text'>{ _subject }</span>}
|
||||||
{ _showParticipantCount && <ParticipantsCount /> }
|
{ _showParticipantCount && <ParticipantsCount /> }
|
||||||
{ !_hideConferenceTimer && <ConferenceTimer /> }
|
{ !_hideConferenceTimer && <ConferenceTimer /> }
|
||||||
|
|
Loading…
Reference in New Issue