Skip to content

Commit 287528c

Browse files
authored
Merge pull request #1032 from nature-of-code/fix/image-overflow
Fix: overflowing images in callout
2 parents 5c5c911 + 0a25414 commit 287528c

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/components/Codesplit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Codesplit = (props) => {
4747

4848
return (
4949
<div
50-
className={`pt-0 ${props.className} ${isAnswerVisible ? 'is-answer-visible' : ''}`}
50+
className={`overflow-visible pt-0 ${props.className} ${isAnswerVisible ? 'is-answer-visible' : ''}`}
5151
>
5252
<div className="flex items-start justify-between">
5353
<LanguageNameBadge language={props['data-code-language']} />

src/styles/callout.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.callout {
2-
@apply clear-both my-4 rounded bg-gray-100 py-4;
2+
@apply clear-both my-4 overflow-y-auto rounded bg-gray-100 py-4;
33
}
44

55
.callout:not(.codesplit) {

src/styles/codesplit.css

-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
/** codesplit div styles */
2-
3-
.codesplit {
4-
@apply my-4 rounded bg-gray-100 py-4;
5-
}
6-
72
.snip-above > .codesplit {
83
@apply relative rounded-t-none border-t border-dashed border-gray-400;
94
}

0 commit comments

Comments
 (0)