fix: max dialog height

pull/63/head
sualko 2020-06-16 17:02:50 +02:00
parent db9566c399
commit 4b33890938
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,11 @@
background-image: url('../../img/chain-plus.svg');
}
.oc-dialog.bbb-dialog {
max-height: calc(100% - 70px);
margin-top: 25px;
}
#bbb-warning {
padding: 1em;
background-color: rgb(255, 255, 123);

View File

@ -15,7 +15,7 @@ const Dialog: React.FC<Props> = ({open, title, children, onClose = () => undefin
return (
<>
<div className="oc-dialog-dim"> </div>
<div className="oc-dialog" tabIndex={-1} role="dialog" style={{display:'inline-block', position: 'fixed'}}>
<div className="oc-dialog bbb-dialog" tabIndex={-1} role="dialog" style={{display:'inline-block', position: 'fixed'}}>
<h2 className="oc-dialog-title">{title}</h2>
<a className="oc-dialog-close" onClick={ev => {ev.preventDefault(); onClose();}}></a>