Skip to content

Commit ea53990

Browse files
authored
Merge pull request #143 from code-hike/fix-quirks-mode-height
Fix quirks mode height
2 parents 87bfe7d + e149ea9 commit ea53990

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/mdx/src/client/slideshow.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
flex: 2;
1616
margin-top: 0;
1717
margin-bottom: 0;
18+
height: auto;
1819
}
1920

20-
.ch-slideshow-preview {
21+
.ch-slideshow .ch-slideshow-preview {
2122
flex: 1;
2223
height: auto;
2324
min-width: 0;

packages/mdx/src/index.scss

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
.ch-preview {
1010
border-radius: 6px;
1111
overflow: hidden;
12+
height: max-content; /* for https://github.com/code-hike/codehike/issues/140 */
13+
1214
box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25),
1315
0 8px 16px -8px rgba(0, 0, 0, 0.3),
1416
0 -6px 16px -6px rgba(0, 0, 0, 0.025);

0 commit comments

Comments
 (0)