Skip to content

Commit adf214d

Browse files
author
Juli Ovechkina
authored
feat(Tabs): add image variative height for media (#612)
1 parent b4750f8 commit adf214d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/blocks/Tabs/Tabs.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export const TabsBlock = ({
9090
key={activeTab}
9191
className={b('media')}
9292
playVideo={play}
93-
height={mediaHeight}
93+
height={activeTabData.media?.video && mediaHeight}
94+
imageClassName={b('image')}
9495
/>
9596
)}
9697
</div>

src/blocks/Tabs/__stories__/data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"start": 0
4343
}
4444
},
45-
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png"
45+
"previewImage": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png"
4646
},
4747
"dark": {
4848
"video": {
@@ -55,7 +55,7 @@
5555
"start": 0
5656
}
5757
},
58-
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
58+
"previewImage": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
5959
}
6060
},
6161
"caption": "Dolor sit amet",

0 commit comments

Comments
 (0)