Skip to content

Commit

Permalink
Fixed #1165 - Dialog is not displayed correctly in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jan 23, 2020
1 parent 13b2153 commit 11a1c5a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/components/dialog/Dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
pointer-events: auto;
}
.p-dialog {
position: fixed;
padding: 0;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
pointer-events: auto;
max-height: 90%;
margin: 5% auto;
overflow-y: auto;
}
.p-dialog .p-dialog-titlebar {
padding: .5em .75em;
Expand Down Expand Up @@ -119,20 +118,17 @@
/* Animation */
.p-dialog-enter {
opacity: 0;
transform: translateX(-50%) translateY(-50%) scale(0.7);
transform: scale(0.7);
}

.p-dialog-enter-active {
opacity: 1;
transform: translateX(-50%) translateY(-50%) scale(1);
transform: scale(1);
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}

.p-dialog-enter-done {
position: static;
transform: none;
top: auto;
left: auto;
}

.p-dialog-exit {
Expand All @@ -150,8 +146,8 @@
transition: none;
transform: none;
width: 100vw !important;
top: 0;
left: 0;
max-height: 100%;
margin: auto;
}

.p-dialog-maximized .p-dialog-content {
Expand Down

0 comments on commit 11a1c5a

Please sign in to comment.