Image improved

This commit is contained in:
tmshv committed 2021-02-17 16:57:25 +03:00
1 parent a2a0932d33
commit aec42b4fc5
3 files changed
+17 -17

No files matched your search

+10 -11
View File
@@ -130,17 +130,16 @@ const Index: NextPage<Props> = props => (
case 'image':
return (
<div key={i} className="kazimir__image">
<figure>
<Image
src={x.data.src}
alt={x.data.alt}
width={x.data.width}
height={x.data.height}
/>
<figcaption>{x.data.caption}</figcaption>
</figure>
</div>
<figure key={i} className="kazimir__image">
<Image
src={x.data.src}
alt={x.data.alt}
width={x.data.width}
height={x.data.height}
layout={'responsive'}
/>
<figcaption>{x.data.caption}</figcaption>
</figure>
)
case 'file':