File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ export class Dialog<T> extends Widget {
97
97
const layout = ( this . layout = new PanelLayout ( ) ) ;
98
98
const content = new Panel ( ) ;
99
99
content . addClass ( 'jp-Dialog-content' ) ;
100
+ if ( typeof options . body === 'string' ) {
101
+ content . addClass ( 'jp-Dialog-content-small' ) ;
102
+ }
100
103
layout . addWidget ( content ) ;
101
104
102
105
this . _body = normalized . body ;
Original file line number Diff line number Diff line change 26
26
margin-left : auto;
27
27
margin-right : auto;
28
28
background : var (--jp-layout-color1 );
29
- padding : 24px ;
30
- padding-bottom : 12px ;
29
+ padding : 24px 24px 12px 24px ;
31
30
min-width : 300px ;
32
31
min-height : 150px ;
33
32
max-width : 1000px ;
43
42
resize : both;
44
43
}
45
44
45
+ .jp-Dialog-content .jp-Dialog-content-small {
46
+ max-width : 500px ;
47
+ }
48
+
46
49
.jp-Dialog-button {
47
50
overflow : visible;
48
51
}
You can’t perform that action at this time.
0 commit comments