Skip to content

Commit

Permalink
Merge pull request #2743 from okauppinen/modal-styles
Browse files Browse the repository at this point in the history
remove padding from content and increase z-index
  • Loading branch information
ZakarFin authored Nov 26, 2024
2 parents db2793f + c3db5aa commit 1c2938d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/react/components/window/Modal.jsx
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>;
});

0 comments on commit 1c2938d

Please sign in to comment.