Skip to content

Commit 3d88b18

Browse files
authored
fix blockquote image display (#1301)
1 parent b9511a8 commit 3d88b18

File tree

1 file changed

+6
-2
lines changed
  • packages/components/src/templates/next/components/complex/Blockquote

1 file changed

+6
-2
lines changed

packages/components/src/templates/next/components/complex/Blockquote/Blockquote.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BiSolidQuoteAltLeft } from "react-icons/bi"
22

33
import type { BlockquoteProps } from "~/interfaces"
44
import { tv } from "~/lib/tv"
5-
import { getTailwindVariantLayout } from "~/utils"
5+
import { getTailwindVariantLayout, isExternalUrl } from "~/utils"
66
import { ComponentContent } from "../../internal/customCssClass"
77
import { ImageClient } from "../Image"
88

@@ -80,7 +80,11 @@ export const Blockquote = ({
8080

8181
{imageSrc && imageAlt && (
8282
<ImageClient
83-
src={imageSrc}
83+
src={
84+
isExternalUrl(imageSrc) || site.assetsBaseUrl === undefined
85+
? imageSrc
86+
: `${site.assetsBaseUrl}${imageSrc}`
87+
}
8488
alt={imageAlt}
8589
width="100%"
8690
className={compoundStyles.image()}

0 commit comments

Comments
 (0)