Fix Bug 69278 - Rooms. fixed ModalDialog styles

This commit is contained in:
Nikita Gopienko 2024-07-17 18:23:59 +03:00
parent 7047b82e3e
commit 0b26605708
2 changed files with 4 additions and 1 deletions

View File

@ -155,12 +155,14 @@ const Content = styled.div.attrs((props: { modalSwipeOffset?: number }) => ({
`}
`;
const StyledHeader = styled.div`
const StyledHeader = styled.div<{ currentDisplayType?: ModalDialogType }>`
display: flex;
align-items: center;
border-bottom: ${(props) =>
`1px solid ${props.theme.modalDialog.headerBorderColor}`};
height: 52px;
margin-bottom: ${(props) =>
props.currentDisplayType === "aside" ? "0px" : "16px"};
padding: 0 16px 0;
.heading {

View File

@ -191,6 +191,7 @@ const Modal = ({
"modal-header"
}
{...headerProps}
currentDisplayType={currentDisplayType}
>
<Heading
level={1}