资源图片渲染

This commit is contained in:
禺狨 2023-03-13 14:22:14 +08:00
parent 568934bb46
commit bbcac7d54a
2 changed files with 10 additions and 2 deletions

View File

@ -60,4 +60,10 @@
position: relative; position: relative;
width: 150px; width: 150px;
height: 150px; height: 150px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: #f4fafe;
border-radius: 6px;
} }

View File

@ -176,8 +176,10 @@ export const ResourceImagesPage = () => {
</i> </i>
<Image <Image
preview={true} preview={true}
width={150} style={{
height={150} width: "150px",
height: "auto",
}}
src={item.url} src={item.url}
/> />
</div> </div>