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 99 border-right : 1px solid ;
1010 min-width : 100px ;
1111 padding : 1em 0 ;
12+ font-size : 0.95rem ;
1213}
1314
1415.ch-code-browser-content {
1819 white-space : pre ;
1920 font-family : monospace ;
2021 font-weight : normal ;
21- font-size : 14 px ;
22- line-height : 19 px ;
22+ font-size : 1 rem ;
23+ line-height : 1.2 rem ;
2324 letter-spacing : 0px ;
2425}
2526
Original file line number Diff line number Diff line change 1313 width : 100vw ;
1414 border : 0 ;
1515 background-color : transparent ;
16- position : relative ;
1716}
1817
1918.ch-expand-dialog ::backdrop {
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ export function ExpandButton({
3131 onClose = { ( ) => {
3232 setExpanded ( false )
3333 } }
34+ onClick = { e => {
35+ if ( e . currentTarget === e . target ) {
36+ ref . current . close ( )
37+ document . body . classList . remove ( "ch-no-scroll" )
38+ }
39+ } }
3440 >
3541 < CloseButton
3642 onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments