Skip to content

Commit dea83e9

Browse files
committed
Fix zoom
1 parent 1f33495 commit dea83e9

File tree

6 files changed

+556
-15
lines changed

6 files changed

+556
-15
lines changed

packages/mdx/src/client/slideshow.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
.ch-slideshow-preview {
1919
flex: 1;
2020
height: auto;
21+
min-width: 0;
2122
}
2223

2324
.ch-slideshow-range {
24-
margin-top: 1rem;
2525
display: flex;
2626
flex-flow: row;
2727
gap: 0.5rem;
@@ -31,11 +31,16 @@
3131
flex: 1;
3232
}
3333

34-
.ch-slideshow-note {
35-
height: 140px;
36-
overflow: auto;
34+
.ch-slideshow-notes {
3735
border-radius: 0.25rem;
3836
margin-top: 1rem;
3937
padding: 1rem;
4038
border: 1px solid #e3e3e3;
4139
}
40+
41+
.ch-slideshow-note {
42+
min-height: 140px;
43+
max-height: 140px;
44+
padding: 0.05px;
45+
overflow: auto;
46+
}

packages/mdx/src/client/slideshow.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ export function Slideshow({
1111
editorSteps,
1212
codeConfig,
1313
presetConfig,
14+
code,
1415
}: {
1516
children: React.ReactNode
1617
editorSteps: EditorStep[]
1718
codeConfig: EditorProps["codeConfig"]
1819
presetConfig?: PresetConfig
20+
code?: EditorProps["codeConfig"]
1921
}) {
2022
const stepsChildren = React.Children.toArray(children)
2123

@@ -47,7 +49,10 @@ export function Slideshow({
4749
<div className="ch-slideshow-slide">
4850
<InnerCode
4951
{...(tab as any)}
50-
codeConfig={codeConfig}
52+
codeConfig={{
53+
...codeConfig,
54+
...code,
55+
}}
5156
onTabClick={onTabClick}
5257
/>
5358
{presetConfig && (

0 commit comments

Comments
 (0)