From 7052027b1d252514ace091eb271ed6f185eae79c Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Mon, 12 Oct 2020 14:47:44 +0200 Subject: [PATCH] Fix column width --- .../components/AttributeValues/AttributeValues.tsx | 8 ++++---- src/storybook/__snapshots__/Stories.test.ts.snap | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/attributes/components/AttributeValues/AttributeValues.tsx b/src/attributes/components/AttributeValues/AttributeValues.tsx index 71b9c81f0..25292d894 100644 --- a/src/attributes/components/AttributeValues/AttributeValues.tsx +++ b/src/attributes/components/AttributeValues/AttributeValues.tsx @@ -31,13 +31,13 @@ export interface AttributeValuesProps { const useStyles = makeStyles( theme => ({ columnAdmin: { - width: "50%" + width: 300 }, columnDrag: { width: 48 + theme.spacing(1.5) }, columnStore: { - width: "50%" + width: "auto" }, dragIcon: { cursor: "grab" @@ -46,7 +46,7 @@ const useStyles = makeStyles( "&:last-child": { paddingRight: theme.spacing() }, - width: 48 + theme.spacing(1.5) + width: 80 }, link: { cursor: "pointer" @@ -98,7 +98,7 @@ const AttributeValues: React.FC = ({ description="attribute values list: name column header" /> - + diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index a4478f4a0..314177ff0 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -21644,7 +21644,7 @@ exports[`Storyshots Views / Attributes / Attribute details create 1`] = ` Default Store View @@ -22534,7 +22534,7 @@ exports[`Storyshots Views / Attributes / Attribute details default 1`] = ` Default Store View @@ -23578,7 +23578,7 @@ exports[`Storyshots Views / Attributes / Attribute details form errors 1`] = ` Default Store View @@ -24631,7 +24631,7 @@ exports[`Storyshots Views / Attributes / Attribute details loading 1`] = ` Default Store View @@ -25409,7 +25409,7 @@ exports[`Storyshots Views / Attributes / Attribute details multiple select input Default Store View @@ -26448,7 +26448,7 @@ exports[`Storyshots Views / Attributes / Attribute details no values 1`] = ` Default Store View