Skip to content

Commit

Permalink
feat(Tabs): add image variative height for media (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juli Ovechkina authored Oct 6, 2023
1 parent b4750f8 commit adf214d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/blocks/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export const TabsBlock = ({
key={activeTab}
className={b('media')}
playVideo={play}
height={mediaHeight}
height={activeTabData.media?.video && mediaHeight}
imageClassName={b('image')}
/>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/Tabs/__stories__/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"start": 0
}
},
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png"
"previewImage": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png"
},
"dark": {
"video": {
Expand All @@ -55,7 +55,7 @@
"start": 0
}
},
"image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
"previewImage": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png"
}
},
"caption": "Dolor sit amet",
Expand Down

0 comments on commit adf214d

Please sign in to comment.