-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove padding from content and increase z-index
- Loading branch information
1 parent
c74b3e6
commit c3db5aa
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import React from 'react'; | ||
import { Modal as AntModal } from 'antd'; | ||
import { ThemeConsumer } from '../../util/contexts'; | ||
import styled from 'styled-components'; | ||
import { Header } from 'oskari-ui/components/window/Header'; | ||
const StyledModal = styled(AntModal)` | ||
.ant-modal-body { | ||
padding: 0 0 0.5em 0; | ||
|
||
const styles = { | ||
body: { | ||
padding: '0 0 0.5em 0' | ||
}, | ||
content: { | ||
padding: '0' | ||
} | ||
`; | ||
}; | ||
|
||
export const Modal = ThemeConsumer(({children, title, options={}, theme={}}) => { | ||
return <StyledModal open={true} closable={false} centered={true} footer={null}> | ||
return <AntModal zIndex={100000} styles={styles} open={true} closable={false} centered={true} footer={null}> | ||
<div> | ||
<Header title={title} isDraggable={false}/> | ||
{children} | ||
</div> | ||
</StyledModal>; | ||
</AntModal>; | ||
}); |