diff --git a/web/app/(commonLayout)/remark-directive-test/page.tsx b/web/app/(commonLayout)/remark-directive-test/page.tsx index dbe318c770..7d75063185 100644 --- a/web/app/(commonLayout)/remark-directive-test/page.tsx +++ b/web/app/(commonLayout)/remark-directive-test/page.tsx @@ -10,8 +10,8 @@ We’re speaking with technical teams to better understand: ::::withIconCardList -:::withIconCardItem {icon="https://assets.dify.ai/images/dify-swag.png"} -Dify swag +:::withIconCardItem {icon="https://assets.dify.ai/images/gift-card.png"} +$100 Amazon gift card ::: :::withIconCardItem {icon="https://assets.dify.ai/images/dify-swag.png"} diff --git a/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx b/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx index 84aff4e042..5841d27c94 100644 --- a/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx +++ b/web/app/components/base/markdown-with-directive/components/with-icon-card-item.tsx @@ -10,7 +10,9 @@ function WithIconCardItem({ icon, children }: WithIconItemProps) { return (
icon -
{children}
+
+ {children} +
) } diff --git a/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx b/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx index b127fcb23d..bf04776870 100644 --- a/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx +++ b/web/app/components/base/markdown-with-directive/components/with-icon-card-list.tsx @@ -8,7 +8,7 @@ type WithIconListProps = WithIconCardListProps & { function WithIconList({ children, className }: WithIconListProps) { return ( -
+
{children}
)