Skip to content

Commit 62d10bb

Browse files
committed
Change dialog font
1 parent afeb4b3 commit 62d10bb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/mdx/src/mini-editor/code-browser.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
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 {
@@ -18,8 +19,8 @@
1819
white-space: pre;
1920
font-family: monospace;
2021
font-weight: normal;
21-
font-size: 14px;
22-
line-height: 19px;
22+
font-size: 1rem;
23+
line-height: 1.2rem;
2324
letter-spacing: 0px;
2425
}
2526

packages/mdx/src/mini-editor/dialog.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
width: 100vw;
1414
border: 0;
1515
background-color: transparent;
16-
position: relative;
1716
}
1817

1918
.ch-expand-dialog::backdrop {

packages/mdx/src/mini-editor/expand-button.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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={() => {

0 commit comments

Comments
 (0)