diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e55add7..e19c7f11f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,7 +47,7 @@ All notable, unreleased changes to this project will be documented in this file. - Change plural form of "informations" to "information" strings across the app #722 by @mmarkusik - Fix misaligned rich text draft controls - #725 by @orzechdev - Allow taxes to be configured per product - #728 by @dominik-zeglen - +- Fix style of product type attributes empty table - #744 by @orzechdev ## 2.10.1 diff --git a/src/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx b/src/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx index defe87b39..dfd6d57d3 100644 --- a/src/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx +++ b/src/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx @@ -125,26 +125,28 @@ const ProductTypeAttributes: React.FC = props => { - - - - - - - - - + {attributes?.length > 0 && ( + + + + + + + + + + )} {renderCollection( attributes, diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index a28871efb..71cac422c 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -128346,71 +128346,6 @@ exports[`Storyshots Views / Product types / Product type details loading 1`] = ` class="ProductTypeAttributes-colAction-id" /> - - - - - - - - - - - - - Attribute name - - - Slug - - - - @@ -128972,30 +128907,6 @@ exports[`Storyshots Views / Product types / Product type details no attributes 1 class="ProductTypeAttributes-colAction-id" /> - - - - Attribute name - - - Slug - - - -