This commit is contained in:
禺狨 2023-03-14 10:34:32 +08:00
commit 82a0b47a56
2 changed files with 4 additions and 2 deletions

View File

@ -60,9 +60,11 @@
display: grid;
gap: 24px;
grid-template-columns: repeat(8, minmax(0, 1fr));
.imageItem {
width: 100%;
height: 150px;
height: auto;
aspect-ratio: 1/1;
background-repeat: no-repeat;
background-size: contain;
background-position: center center;

View File

@ -199,7 +199,7 @@ export const ResourceImagesPage = () => {
{imageList.map((item: any, index: number) => (
<div
key={item.id}
className={styles.imageItem}
className={`${styles.imageItem} ref-image-item`}
style={{ backgroundImage: `url(${item.url})` }}
onClick={() => showImage(index, true)}
onMouseOver={() => showHover(index, true)}