Skip to content

Commit

Permalink
Fix images.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Aug 6, 2024
1 parent af9fc51 commit 0d6c9a4
Show file tree
Hide file tree
Showing 2 changed files with 6,150 additions and 4,838 deletions.
8 changes: 4 additions & 4 deletions apps/maestros/components/mdxComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { focus } from './bright/focus';

interface CustomImageProps extends ImageProps {
containerClassName: string;
srcDark: string;
srcLight: string;
srcDark?: string;
srcLight?: string;
}

Code.theme = {
Expand All @@ -27,15 +27,15 @@ export const mdxComponents = {
className="hidden object-contain w-full h-auto rounded-md dark:block"
height={1}
sizes="100vw"
src={srcDark}
src={srcDark ?? _src}
width={1}
{...rest}
/>
<NextImage
className="block object-contain w-full h-auto rounded-md dark:hidden"
height={1}
sizes="100vw"
src={srcLight}
src={srcLight ?? _src}
width={1}
{...rest}
/>
Expand Down
Loading

0 comments on commit 0d6c9a4

Please sign in to comment.