mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
fixed uploads
This commit is contained in:
parent
38d56838f2
commit
f511ca3f6a
4 changed files with 37 additions and 36 deletions
|
@ -12,15 +12,21 @@ interface IProps {
|
|||
}
|
||||
|
||||
const ImageUpload: FC<IProps> = ({
|
||||
thumb,
|
||||
id,
|
||||
progress,
|
||||
is_uploading,
|
||||
thumb, id, progress, is_uploading,
|
||||
}) => (
|
||||
<div className={styles.wrap}>
|
||||
<div className={classNames(styles.thumb_wrap, { is_uploading })}>
|
||||
{thumb && <div className={styles.thumb} style={{ background: `url("${thumb}")` }}>{id}</div>}
|
||||
{is_uploading && <div className={styles.progress}><ArcProgress size={72} progress={progress} /></div>}
|
||||
{thumb && (
|
||||
<div
|
||||
className={styles.thumb}
|
||||
style={{ backgroundImage: `url("${process.env.API_HOST}${thumb}")` }}
|
||||
/>
|
||||
)}
|
||||
{is_uploading && (
|
||||
<div className={styles.progress}>
|
||||
<ArcProgress size={72} progress={progress} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
background: no-repeat 50% 50%;
|
||||
background-size: cover;
|
||||
opacity: 1;
|
||||
filter: saturate(0);
|
||||
// filter: saturate(0);
|
||||
}
|
||||
|
||||
.progress {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue