Fix zIndex of peristent apps in miniMode (#7429)

Fixes a bug, where the persistent (PiP mode app) is hidden behind another widget in the right panel or a maximised widget.
This commit is contained in:
Timo 2021-12-21 17:42:42 +01:00 committed by GitHub
parent a239c456e3
commit d4bafdcddd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -508,7 +508,7 @@ export default class AppTile extends React.Component<IProps, IState> {
// Also wrap the PersistedElement in a div to fix the height, otherwise // Also wrap the PersistedElement in a div to fix the height, otherwise
// AppTile's border is in the wrong place // AppTile's border is in the wrong place
appTileBody = <div className="mx_AppTile_persistedWrapper"> appTileBody = <div className="mx_AppTile_persistedWrapper">
<PersistedElement persistKey={this.persistKey}> <PersistedElement zIndex={this.props.miniMode ? 10 : 9}persistKey={this.persistKey}>
{ appTileBody } { appTileBody }
</PersistedElement> </PersistedElement>
</div>; </div>;