web: components: footer with bottom alignment in modal dialog with aside view
This commit is contained in:
parent
9640fb7633
commit
688a2913f8
@ -26,6 +26,15 @@ const StyledAside = styled(Container)`
|
||||
transition: transform 0.3s ease-in-out;
|
||||
width: ${props => (props.scale ? "100%" : "320px")};
|
||||
z-index: ${props => props.zIndex};
|
||||
|
||||
&.modal-dialog-aside {
|
||||
padding-bottom: 64px;
|
||||
|
||||
.modal-dialog-aside-footer {
|
||||
position: fixed;
|
||||
bottom: 16px;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const Aside = React.memo(props => {
|
||||
|
@ -146,14 +146,14 @@ class ModalDialog extends React.Component {
|
||||
) : (
|
||||
<>
|
||||
<Backdrop visible={visible} onClick={onClose} zIndex={zIndex}/>
|
||||
<Aside visible={visible} scale={scale} zIndex={zIndex}>
|
||||
<Aside visible={visible} scale={scale} zIndex={zIndex} className="modal-dialog-aside">
|
||||
<Content>
|
||||
<Header>
|
||||
<HeaderText>{headerContent}</HeaderText>
|
||||
{scale ? <CloseButton onClick={onClose}></CloseButton> : ""}
|
||||
</Header>
|
||||
<Body>{bodyContent}</Body>
|
||||
<Footer>{footerContent}</Footer>
|
||||
<Footer className="modal-dialog-aside-footer">{footerContent}</Footer>
|
||||
</Content>
|
||||
</Aside>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user