Skip to content

Commit

Permalink
Merge pull request #1032 from nature-of-code/fix/image-overflow
Browse files Browse the repository at this point in the history
Fix: overflowing images in callout
  • Loading branch information
shiffman authored Oct 8, 2024
2 parents 5c5c911 + 0a25414 commit 287528c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Codesplit.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Codesplit = (props) => {

return (
<div
className={`pt-0 ${props.className} ${isAnswerVisible ? 'is-answer-visible' : ''}`}
className={`overflow-visible pt-0 ${props.className} ${isAnswerVisible ? 'is-answer-visible' : ''}`}
>
<div className="flex items-start justify-between">
<LanguageNameBadge language={props['data-code-language']} />
Expand Down
2 changes: 1 addition & 1 deletion src/styles/callout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.callout {
@apply clear-both my-4 rounded bg-gray-100 py-4;
@apply clear-both my-4 overflow-y-auto rounded bg-gray-100 py-4;
}

.callout:not(.codesplit) {
Expand Down
5 changes: 0 additions & 5 deletions src/styles/codesplit.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
/** codesplit div styles */

.codesplit {
@apply my-4 rounded bg-gray-100 py-4;
}

.snip-above > .codesplit {
@apply relative rounded-t-none border-t border-dashed border-gray-400;
}
Expand Down

0 comments on commit 287528c

Please sign in to comment.