Skip to content

Commit

Permalink
fix: update empty component (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyzif authored Aug 14, 2024
1 parent 590e231 commit 655e252
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/data-display/Empty/Empty.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
},
}

Expand Down
8 changes: 6 additions & 2 deletions src/components/data-display/Empty/empty.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.ant-empty-image > svg{
width: auto !important;
.ant-empty-image {
margin: auto !important;
}

.ant-empty-image > svg {
width: auto !important;
}

0 comments on commit 655e252

Please sign in to comment.