mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(toolbox) Shift up to make tile name visible
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { withStyles } from '@mui/styles';
|
||||
import clsx from 'clsx';
|
||||
import React, { Component, RefObject } from 'react';
|
||||
import { WithTranslation } from 'react-i18next';
|
||||
import { batch, connect } from 'react-redux';
|
||||
@@ -293,6 +294,11 @@ interface IProps extends WithTranslation {
|
||||
*/
|
||||
_sharingVideo?: boolean;
|
||||
|
||||
/**
|
||||
* Whether the toolbox should be shifted up or not.
|
||||
*/
|
||||
_shiftUp: boolean;
|
||||
|
||||
/**
|
||||
* Whether or not the shortcut buttons are enabled.
|
||||
*/
|
||||
@@ -576,7 +582,7 @@ class Toolbox extends Component<IProps> {
|
||||
|
||||
return (
|
||||
<div
|
||||
className = { rootClassNames }
|
||||
className = { clsx(rootClassNames, this.props._shiftUp && 'shift-up') }
|
||||
id = 'new-toolbox'>
|
||||
{ this._renderToolboxContent() }
|
||||
</div>
|
||||
@@ -1614,6 +1620,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
|
||||
_reactionsButtonEnabled: isReactionsButtonEnabled(state),
|
||||
_reactionsEnabled,
|
||||
_screenSharing: isScreenVideoShared(state),
|
||||
_shiftUp: state['features/toolbox'].shiftUp,
|
||||
_shortcutsEnabled: areKeyboardShortcutsEnabled(state),
|
||||
_tileViewEnabled: shouldDisplayTileView(state),
|
||||
_toolbarButtons: toolbarButtons,
|
||||
|
||||
Reference in New Issue
Block a user