试图修复博客文章的img样式
This commit is contained in:
@@ -66,7 +66,9 @@ export default function Blog() {
|
|||||||
img: ({ src }) => (
|
img: ({ src }) => (
|
||||||
<PhotoProvider className="w-full">
|
<PhotoProvider className="w-full">
|
||||||
<PhotoView src={src as string}>
|
<PhotoView src={src as string}>
|
||||||
|
<div style={{ width: '100%' }}>
|
||||||
<Image src={src as string} width={0} height={0} style={{ width: '100%', height: 'auto' }} unoptimized alt="加载失败" />
|
<Image src={src as string} width={0} height={0} style={{ width: '100%', height: 'auto' }} unoptimized alt="加载失败" />
|
||||||
|
</div>
|
||||||
</PhotoView>
|
</PhotoView>
|
||||||
</PhotoProvider>
|
</PhotoProvider>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user