Skip to content

Commit b5a38e2

Browse files
committed
Dialog box flex/position changes
1 parent 233bf54 commit b5a38e2

File tree

4 files changed

+42
-42
lines changed

4 files changed

+42
-42
lines changed

dist/textpattern/jquery-ui.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,22 +1187,22 @@ input.ui-button.ui-icon-notext .ui-icon {
11871187
*/
11881188
.ui-dialog {
11891189
display: flex;
1190-
position: fixed;
1190+
position: absolute;
11911191
top: 0;
11921192
left: 0;
1193-
flex-direction: column;
1194-
align-items: stretch;
1195-
max-width: 95%;
1196-
max-height: 95%;
1197-
margin: auto;
1193+
flex-flow: column;
1194+
max-width: 90vw;
1195+
max-height: 90vh;
11981196
padding: 0.2em;
11991197
outline: 0;
12001198
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
1199+
overflow: hidden;
12011200
z-index: 1002;
12021201
}
12031202

12041203
.ui-dialog .ui-dialog-titlebar {
12051204
position: relative;
1205+
flex: none;
12061206
padding: 0.4em 1em;
12071207
}
12081208

@@ -1235,11 +1235,11 @@ input.ui-button.ui-icon-notext .ui-icon {
12351235

12361236
.ui-dialog .ui-dialog-content {
12371237
position: relative;
1238-
flex: 1;
1238+
flex: 1 1 auto;
12391239
padding: 0.5em 1em;
12401240
border: 0;
12411241
background: none;
1242-
overflow: auto;
1242+
overflow: scroll;
12431243
}
12441244

12451245
.ui-dialog .ui-dialog-buttonpane {

dist/textpattern/jquery-ui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/modules/_dialog.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@
3535

3636
.ui-dialog {
3737
display: flex;
38-
position: fixed;
38+
position: absolute;
3939
top: 0;
4040
left: 0;
41-
flex-direction: column;
42-
align-items: stretch;
43-
max-width: 95%;
44-
max-height: 95%;
45-
margin: auto;
41+
flex-flow: column;
42+
max-width: 90vw;
43+
max-height: 90vh;
4644
padding: 0.2em;
4745
outline: 0;
4846

4947
@if $flat-theme < 1 {
5048
box-shadow: $standard-shadow;
5149
}
5250

51+
overflow: hidden;
5352
z-index: 1002;
5453

5554
.ui-dialog-titlebar {
5655
position: relative;
56+
flex: none;
5757
padding: 0.4em 1em;
5858
}
5959

@@ -86,11 +86,11 @@
8686

8787
.ui-dialog-content {
8888
position: relative;
89-
flex: 1;
89+
flex: 1 1 auto;
9090
padding: 0.5em 1em;
9191
border: 0;
9292
background: none;
93-
overflow: auto;
93+
overflow: scroll;
9494
}
9595

9696
.ui-dialog-buttonpane {

0 commit comments

Comments
 (0)