fix(dialog-portal): set z-index to high value (#13004)

pull/13009/head jitsi-meet_8370
Gabriel Borlea 2 years ago committed by GitHub
parent 077a88a803
commit 297ab194a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      react/features/toolbox/components/web/DialogPortal.ts
  2. 3
      react/features/toolbox/constants.ts

@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import { useSelector } from 'react-redux';
import { IReduxState } from '../../../app/types';
import { ZINDEX_DIALOG_PORTAL } from '../../constants';
type Props = {
@ -65,6 +66,7 @@ function DialogPortal({ children, className, style, getRef, setSize }: Props) {
useEffect(() => {
if (portalTarget && getRef) {
getRef(portalTarget);
portalTarget.style.zIndex = `${ZINDEX_DIALOG_PORTAL}`;
}
}, [ portalTarget ]);

@ -38,3 +38,6 @@ export const NOTIFY_CLICK_MODE = {
ONLY_NOTIFY: 'ONLY_NOTIFY',
PREVENT_AND_NOTIFY: 'PREVENT_AND_NOTIFY'
};
// Around 300 to be displayed above components like chat
export const ZINDEX_DIALOG_PORTAL = 300;

Loading…
Cancel
Save