Skip to content

Commit f56f2fd

Browse files
authored
Merge pull request #159 from dzcode-io/bugfix/article-image
🐞 fixed images width in article page
2 parents 016239c + 89faea4 commit f56f2fd

File tree

1 file changed

+1
-0
lines changed
  • frontend/src/apps/main/components/markdown

1 file changed

+1
-0
lines changed

frontend/src/apps/main/components/markdown/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const Markdown = (props: MarkdownProps) => {
3636
},
3737
p: { component: Typography, props: { paragraph: true } },
3838
a: { component: LinkV2 },
39+
img: { props: { style: { maxWidth: "100%" } } } as any,
3940
pre: {
4041
component({ children: { props } }: any) {
4142
return (

0 commit comments

Comments
 (0)