MM-64372 Fix onboarding checklist being rendered behind team sidebar (#31365)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ed3a6d6b91
Коммит
408f6ec849
@@ -1,12 +1,15 @@
|
|||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||||
// See LICENSE.txt for license information.
|
// See LICENSE.txt for license information.
|
||||||
|
|
||||||
|
import {FloatingPortal} from '@floating-ui/react';
|
||||||
import type {Placement} from '@floating-ui/react-dom';
|
import type {Placement} from '@floating-ui/react-dom';
|
||||||
import {useFloating, offset as floatingOffset, autoUpdate} from '@floating-ui/react-dom';
|
import {useFloating, offset as floatingOffset, autoUpdate} from '@floating-ui/react-dom';
|
||||||
import React, {useLayoutEffect} from 'react';
|
import React, {useLayoutEffect} from 'react';
|
||||||
import {CSSTransition} from 'react-transition-group';
|
import {CSSTransition} from 'react-transition-group';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
|
import {RootHtmlPortalId} from 'utils/constants';
|
||||||
|
|
||||||
const Overlay = styled.div`
|
const Overlay = styled.div`
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -86,7 +89,7 @@ export const TaskListPopover = ({
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<FloatingPortal id={RootHtmlPortalId}>
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
timeout={150}
|
timeout={150}
|
||||||
classNames='fade'
|
classNames='fade'
|
||||||
@@ -104,7 +107,7 @@ export const TaskListPopover = ({
|
|||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</FloatingPortal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user