File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
packages/mdx/src/mini-editor Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 9
9
border-right : 1px solid ;
10
10
min-width : 100px ;
11
11
padding : 1em 0 ;
12
+ font-size : 0.95rem ;
12
13
}
13
14
14
15
.ch-code-browser-content {
18
19
white-space : pre ;
19
20
font-family : monospace ;
20
21
font-weight : normal ;
21
- font-size : 14 px ;
22
- line-height : 19 px ;
22
+ font-size : 1 rem ;
23
+ line-height : 1.2 rem ;
23
24
letter-spacing : 0px ;
24
25
}
25
26
Original file line number Diff line number Diff line change 13
13
width : 100vw ;
14
14
border : 0 ;
15
15
background-color : transparent ;
16
- position : relative ;
17
16
}
18
17
19
18
.ch-expand-dialog ::backdrop {
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ export function ExpandButton({
31
31
onClose = { ( ) => {
32
32
setExpanded ( false )
33
33
} }
34
+ onClick = { e => {
35
+ if ( e . currentTarget === e . target ) {
36
+ ref . current . close ( )
37
+ document . body . classList . remove ( "ch-no-scroll" )
38
+ }
39
+ } }
34
40
>
35
41
< CloseButton
36
42
onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments