mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +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,7 +291,8 @@ const NodeImageSlideBlock: FC<IProps> = ({
|
||||||
onTouchStart={startDragging}
|
onTouchStart={startDragging}
|
||||||
ref={slide}
|
ref={slide}
|
||||||
>
|
>
|
||||||
{images.map((file, index) => (
|
{!is_loading &&
|
||||||
|
images.map((file, index) => (
|
||||||
<div
|
<div
|
||||||
className={classNames(styles.image_wrap, {
|
className={classNames(styles.image_wrap, {
|
||||||
is_active: index === current && loaded[index],
|
is_active: index === current && loaded[index],
|
||||||
|
@ -305,9 +306,7 @@ const NodeImageSlideBlock: FC<IProps> = ({
|
||||||
alt=""
|
alt=""
|
||||||
key={file.id}
|
key={file.id}
|
||||||
onLoad={onImageLoad(index)}
|
onLoad={onImageLoad(index)}
|
||||||
style={{
|
style={{ maxHeight: max_height }}
|
||||||
maxHeight: max_height,
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue