Skip to content

Commit 23c09e0

Browse files
lebogaearon
authored andcommitted
polish dark mode illustrations
1 parent b761b81 commit 23c09e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beta/src/components/MDX/MDXComponents.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function Illustration({
185185
return (
186186
<div className="my-16 mx-0 2xl:mx-auto max-w-4xl 2xl:max-w-6xl">
187187
<figure className="my-8 flex justify-center">
188-
<img src={src} alt={alt} style={{maxHeight: 300}} />
188+
<img src={src} alt={alt} style={{maxHeight: 300}} className="bg-white rounded-lg" />
189189
{caption ? (
190190
<figcaption className="text-center leading-tight mt-4">
191191
{caption}
@@ -215,7 +215,7 @@ function IllustrationBlock({
215215
);
216216
const images = imageInfos.map((info, index) => (
217217
<figure key={index}>
218-
<div className="flex-1 flex p-0 xl:px-6 justify-center items-center my-4">
218+
<div className="bg-white rounded-lg p-4 flex-1 flex xl:p-6 justify-center items-center my-4">
219219
<img src={info.src} alt={info.alt} height={info.height} />
220220
</div>
221221
{info.caption ? (

0 commit comments

Comments
 (0)