mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 16:31:16 +01:00
Modal scrolling #156
This commit is contained in:
parent
c950a33031
commit
8a6e24e5e7
2 changed files with 9 additions and 2 deletions
|
@ -21,7 +21,9 @@ class Modal extends React.Component {
|
|||
<CloseIcon />
|
||||
</a>
|
||||
</header>
|
||||
<div className="maputnik-modal-content">{this.props.children}</div>
|
||||
<div className="maputnik-modal-scroller">
|
||||
<div className="maputnik-modal-content">{this.props.children}</div>
|
||||
</div>
|
||||
</div>
|
||||
</Overlay>
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
.maputnik-modal {
|
||||
min-width: 350px;
|
||||
max-width: 600px;
|
||||
overflow: hidden;
|
||||
background-color: $color-black;
|
||||
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
|
||||
z-index: 3;
|
||||
|
@ -39,9 +40,13 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.maputnik-modal-scroller {
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.maputnik-modal-content {
|
||||
padding: $margin-3;
|
||||
max-height: 90vh;
|
||||
|
||||
@include flex-column;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue