fix(shared-video) use more space on recorders

They don't render the toolbar so there is more space available.

The reason this commit does that is because getToolboxHeight will now
always be 0 for recorders.
This commit is contained in:
Saúl Ibarra Corretgé 2022-02-04 11:06:07 +01:00 committed by Saúl Ibarra Corretgé
parent aaa26f8c7d
commit 15cc956ed4
2 changed files with 15 additions and 5 deletions

View File

@ -31,15 +31,13 @@ type Props = {
/**
* Is the video shared by the local user.
*
* @private
*/
isOwner: boolean,
isOwner: boolean,
/**
* The shared video url.
*/
videoUrl: string,
videoUrl: string,
}
/** .

View File

@ -144,6 +144,11 @@ type Props = {
*/
_dialog: boolean,
/**
* Whether or not the toolbox is disabled. It is for recorders.
*/
_disabled: boolean,
/**
* Whether or not call feedback can be sent.
*/
@ -447,6 +452,10 @@ class Toolbox extends Component<Props> {
* @returns {ReactElement}
*/
render() {
if (this.props._disabled) {
return null;
}
const { _chatOpen, _visible, _toolbarButtons } = this.props;
const rootClassNames = `new-toolbox ${_visible ? 'visible' : ''} ${
_toolbarButtons.length ? '' : 'no-buttons'} ${_chatOpen ? 'shift-right' : ''}`;
@ -1346,11 +1355,13 @@ function _mapStateToProps(state, ownProps) {
const { conference } = state['features/base/conference'];
let desktopSharingEnabled = JitsiMeetJS.isDesktopSharingEnabled();
const {
buttonsWithNotifyClick,
callStatsID,
disableProfile,
enableFeaturesBasedOnToken,
hideDominantSpeakerBadge,
buttonsWithNotifyClick
iAmRecorder,
iAmSipGateway
} = state['features/base/config'];
const {
fullScreen,
@ -1391,6 +1402,7 @@ function _mapStateToProps(state, ownProps) {
_desktopSharingButtonDisabled: isDesktopShareButtonDisabled(state),
_desktopSharingDisabledTooltipKey: desktopSharingDisabledTooltipKey,
_dialog: Boolean(state['features/base/dialog'].component),
_disabled: Boolean(iAmRecorder || iAmSipGateway),
_feedbackConfigured: Boolean(callStatsID),
_fullScreen: fullScreen,
_isProfileDisabled: Boolean(disableProfile),