mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
several bug fixes
This commit is contained in:
parent
f23b9166e1
commit
11348aa411
13 changed files with 281 additions and 110 deletions
|
@ -228,12 +228,14 @@ const NodeImageSlideBlock: FC<IProps> = ({
|
|||
</div>
|
||||
)}
|
||||
|
||||
<ImageSwitcher
|
||||
total={images.length}
|
||||
current={current}
|
||||
onChange={changeCurrent}
|
||||
loaded={loaded}
|
||||
/>
|
||||
{!is_loading && (
|
||||
<ImageSwitcher
|
||||
total={images.length}
|
||||
current={current}
|
||||
onChange={changeCurrent}
|
||||
loaded={loaded}
|
||||
/>
|
||||
)}
|
||||
|
||||
<div
|
||||
className={styles.image_container}
|
||||
|
@ -253,7 +255,7 @@ const NodeImageSlideBlock: FC<IProps> = ({
|
|||
is_active: index === current && loaded[index]
|
||||
})}
|
||||
ref={setRef(index)}
|
||||
key={file.id}
|
||||
key={node.updated_at + file.id}
|
||||
>
|
||||
<img
|
||||
className={styles.image}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue