Skip to content

Commit 93438bb

Browse files
author
Andrei Alexandru
committed
modal position fixed
1 parent c3263bd commit 93438bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

views/src/components/Modal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Modal extends Component {
2323

2424
// create modal id and add to state to later identify for close/distroy
2525
}
26+
2627
render() {
2728
const className = this.props.className,
2829
hidden = this.props.status == false? 'hidden': '';

views/src/scss/components/modal.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ $modal-shadow: rgba(0, 0, 0, 0.4);
22
.modal {
33
width: 100%;
44
height: 100%;
5-
position: absolute;
6-
visibility: visible;
7-
display: block;
5+
overflow: hidden;
6+
position: fixed;
87
top: 0;
9-
left: 0;
108
right: 0;
119
bottom: 0;
10+
left: 0;
1211
background-color: rgba(22,22,22,0.5);
1312

1413
&.hidden {

0 commit comments

Comments
 (0)