mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed is_loading display
This commit is contained in:
parent
a0d18076ad
commit
54dd5ef478
1 changed files with 19 additions and 20 deletions
|
@ -291,26 +291,25 @@ const NodeImageSlideBlock: FC<IProps> = ({
|
||||||
onTouchStart={startDragging}
|
onTouchStart={startDragging}
|
||||||
ref={slide}
|
ref={slide}
|
||||||
>
|
>
|
||||||
{images.map((file, index) => (
|
{!is_loading &&
|
||||||
<div
|
images.map((file, index) => (
|
||||||
className={classNames(styles.image_wrap, {
|
<div
|
||||||
is_active: index === current && loaded[index],
|
className={classNames(styles.image_wrap, {
|
||||||
})}
|
is_active: index === current && loaded[index],
|
||||||
ref={setRef(index)}
|
})}
|
||||||
key={node.updated_at + file.id}
|
ref={setRef(index)}
|
||||||
>
|
key={node.updated_at + file.id}
|
||||||
<img
|
>
|
||||||
className={styles.image}
|
<img
|
||||||
src={getURL(file, PRESETS['1600'])}
|
className={styles.image}
|
||||||
alt=""
|
src={getURL(file, PRESETS['1600'])}
|
||||||
key={file.id}
|
alt=""
|
||||||
onLoad={onImageLoad(index)}
|
key={file.id}
|
||||||
style={{
|
onLoad={onImageLoad(index)}
|
||||||
maxHeight: max_height,
|
style={{ maxHeight: max_height }}
|
||||||
}}
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
))}
|
||||||
))}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{images.length > 1 && (
|
{images.length > 1 && (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue