Skip to content

Commit 3e0950c

Browse files
committed
Merge pull request #367 from CodeNow/fix-error-modal-overflow
update error modals
2 parents ded7137 + b8457c5 commit 3e0950c

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

client/assets/styles/scss/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
@import "modals/modals-fork";
6767
@import "modals/modals-rename";
6868
@import "modals/modals-sidebar";
69+
@import "modals/modals-error";
6970

7071
// popovers
7172
@import "popover/popover";

client/assets/styles/scss/modals/modals-environment.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
.modal-environment {
2-
max-width: 600px;
3-
min-width: 450px;
4-
top: 0;
52

63
.modal-body {
74
border-bottom: 1px solid rgba($black,.1);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.modal-error .well-code {
2+
height: auto;
3+
line-height: 1.2;
4+
max-height: none;
5+
padding: 12px;
6+
}

client/assets/styles/scss/modals/modals-sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
right: 0;
77
top: 0;
88
transform: translate3d(0,0,0);
9-
transition: transform .2s ease-in;
9+
transition: transform .15s ease-in;
1010
width: 210px;
1111
z-index: $z-modal-sidebar;
1212

client/assets/styles/scss/modals/modals.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.modal-backdrop {
33
align-items: center;
44
animation: fade-in .3s ease-in forwards;
5-
background: rgba($black,.3);
5+
background: rgba($black,.45);
66
display: flex;
77
flex-direction: column;
88
height: 100vh;
@@ -28,10 +28,12 @@
2828
box-shadow: 0 0 30px rgba($black,.12);
2929
color: $gray-dark;
3030
margin: auto;
31-
min-width: 420px;
31+
max-width: 75vw;
32+
min-width: 370px;
3233
position: relative;
3334

3435
@include media(xs) {
36+
max-width: calc(100vw - 30px);
3537
min-width: 360px;
3638
width: calc(100% - 30px);
3739
}
@@ -120,6 +122,8 @@
120122

121123
// main.modal-body
122124
.modal-body {
125+
max-height: calc(100vh - 153px);
126+
overflow-y: auto;
123127

124128
// validation in modals:
125129
.validate-wrapper {

client/directives/modals/modalGeneric/viewModalError.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
.modal-dialog(
2-
ng-class = "{in: data.in}"
1+
.modal-dialog.modal-error(
32
ng-click = "$event.stopPropagation()"
43
)
54
header.modal-header
65
h1.modal-heading Something went wrong.
76
section.modal-body
8-
p.modal-description(
7+
.modal-description.well.well-code.gray(
98
ng-repeat = "error in data.errors track by $index"
109
) {{ error | errJSON }}
10+
1111
footer.modal-footer
1212
button.btn.white(
1313
ng-click = "defaultActions.cancel()"

0 commit comments

Comments
 (0)