mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
tried to fix image grid, but got no results
This commit is contained in:
parent
1730421f27
commit
10b013f9a8
4 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@ const SortableList = SortableContainer(({ items, locked }: { items: IFile[], loc
|
||||||
items.map((file, index) => (
|
items.map((file, index) => (
|
||||||
<SortableItem key={file.id} index={index}>
|
<SortableItem key={file.id} index={index}>
|
||||||
<ImageUpload
|
<ImageUpload
|
||||||
|
id={file.id}
|
||||||
thumb={file.url}
|
thumb={file.url}
|
||||||
/>
|
/>
|
||||||
</SortableItem>
|
</SortableItem>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// flex: 0 4 25%;
|
// flex: 0 4 25%;
|
||||||
width: 25%;
|
width: 25%;
|
||||||
float: left;
|
float: left;
|
||||||
padding: $gap / 2;
|
// padding: $gap / 2;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
|
@ -20,7 +20,7 @@ const ImageUpload: FC<IProps> = ({
|
||||||
return (
|
return (
|
||||||
<div className={styles.wrap}>
|
<div className={styles.wrap}>
|
||||||
<div className={classNames(styles.thumb_wrap, { is_uploading })}>
|
<div className={classNames(styles.thumb_wrap, { is_uploading })}>
|
||||||
{thumb && <div className={styles.thumb} style={{ background: `url("${thumb}")` }} />}
|
{thumb && <div className={styles.thumb} style={{ background: `url("${thumb}")` }}>{id}</div>}
|
||||||
{is_uploading && <div className={styles.progress}><ArcProgress size={72} progress={progress} /></div>}
|
{is_uploading && <div className={styles.progress}><ArcProgress size={72} progress={progress} /></div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
background: no-repeat 50% 50%;
|
background: no-repeat 50% 50%;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
opacity: 0;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue