1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

added dominant color to node swiper block

This commit is contained in:
Fedor Katurov 2022-12-05 22:30:40 +06:00
parent 4ded317fd0
commit 15a83b6793
2 changed files with 2 additions and 0 deletions

View file

@ -130,6 +130,7 @@ const NodeImageSwiperBlock: FC<IProps> = observer(({ node }) => {
{images.map((file, i) => (
<SwiperSlide className={styles.slide} key={file.id}>
<Image
style={{ backgroundColor: file.metadata?.dominant_color }}
src={getURL(file, ImagePresets['1600'])}
width={file.metadata?.width}
height={file.metadata?.height}