Full height/width modal for libraries

This commit is contained in:
steven dale committed 2017-05-10 18:07:31 -04:00
1 parent 4dd287a598
commit 0bb0341698
3 files changed
+21 -2

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ class LibraryComponent extends React.Component {
visible={this.props.visible}
onRequestClose={this.props.onRequestClose}
>
<h1 className={styles.modalHeader}>{this.props.title}</h1>
// <h1 className={styles.modalHeader}>{this.props.title}</h1>
<div className={styles.libraryScrollGrid}>
{this.props.data.map((dataItem, itemId) => {
const scratchURL = dataItem.md5 ?
+19
View File
@@ -40,3 +40,22 @@
right: 1rem;
z-index: 2;
}
.full-modal-content {
// same as .modal-children
position: absolute;
outline: none;
overflow-y: scroll;
-webkit-overflow-scrolling: 'touch';
border: 1px solid #ccc;
padding: 0;
user-select: none;
// different from .modal-children
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 0;
}
+1 -1
View File
@@ -11,7 +11,7 @@ class ModalComponent extends React.Component {
render () {
return (
<ReactModal
className={styles.modalContent}
className={styles.fullModalContent}
contentLabel={this.props.contentLabel}
isOpen={this.props.visible}
overlayClassName={styles.modalOverlay}