From 61db0d7fd257ce590fe85c02d030b1c4044354ca Mon Sep 17 00:00:00 2001 From: Nikita Gorin <36075690+NikitaCG@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:48:20 +0300 Subject: [PATCH] Revert "feat(Tabs): add image variative height for media (#612)" (#643) This reverts commit adf214d3a672e3cfcf6b5ba0df05549f5ca73dd1. --- src/blocks/Tabs/Tabs.tsx | 3 +-- src/blocks/Tabs/__stories__/data.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/blocks/Tabs/Tabs.tsx b/src/blocks/Tabs/Tabs.tsx index e990cd8ab..8ac8db90f 100644 --- a/src/blocks/Tabs/Tabs.tsx +++ b/src/blocks/Tabs/Tabs.tsx @@ -90,8 +90,7 @@ export const TabsBlock = ({ key={activeTab} className={b('media')} playVideo={play} - height={activeTabData.media?.video && mediaHeight} - imageClassName={b('image')} + height={mediaHeight} /> )} diff --git a/src/blocks/Tabs/__stories__/data.json b/src/blocks/Tabs/__stories__/data.json index 3e8f8cea8..f78d6cc4f 100644 --- a/src/blocks/Tabs/__stories__/data.json +++ b/src/blocks/Tabs/__stories__/data.json @@ -42,7 +42,7 @@ "start": 0 } }, - "previewImage": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png" + "image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_white.png" }, "dark": { "video": { @@ -55,7 +55,7 @@ "start": 0 } }, - "previewImage": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png" + "image": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_8-12_dark.png" } }, "caption": "Dolor sit amet",