From 655e2527b06c55cda2b18af889d143b0ceacad3d Mon Sep 17 00:00:00 2001 From: Gaby Zifferman Date: Wed, 14 Aug 2024 20:06:32 +0200 Subject: [PATCH] fix: update empty component (#371) --- src/components/data-display/Empty/Empty.stories.tsx | 2 +- src/components/data-display/Empty/empty.css | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/data-display/Empty/Empty.stories.tsx b/src/components/data-display/Empty/Empty.stories.tsx index e72e1c44b..83dc20610 100644 --- a/src/components/data-display/Empty/Empty.stories.tsx +++ b/src/components/data-display/Empty/Empty.stories.tsx @@ -55,7 +55,7 @@ export const NoImage: Story = { export const AltImage: Story = { args: { image: Empty.PRESENTED_IMAGE_SIMPLE, - imageStyle: { width: '100px', height: '62px', margin: 'auto' }, + imageStyle: { width: '100px', height: '62px' }, }, } diff --git a/src/components/data-display/Empty/empty.css b/src/components/data-display/Empty/empty.css index beb7293fd..c919bcf09 100644 --- a/src/components/data-display/Empty/empty.css +++ b/src/components/data-display/Empty/empty.css @@ -1,3 +1,7 @@ -.ant-empty-image > svg{ - width: auto !important; +.ant-empty-image { + margin: auto !important; +} + +.ant-empty-image > svg { + width: auto !important; } \ No newline at end of file