Skip to content

Commit

Permalink
Fix nested border-radius for attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Jun 3, 2021
1 parent 6642652 commit 430d600
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
9 changes: 0 additions & 9 deletions stylesheets/_modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@
bottom: -10px;
}

border-radius: 16px;
line-height: 0;
overflow: hidden;

Expand All @@ -596,18 +595,10 @@

&--with-content-below {
margin-bottom: 7px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}

&--with-content-above {
margin-top: 4px;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}

.module-message__container--gif & {
border-radius: inherit;
}
}

Expand Down
38 changes: 38 additions & 0 deletions ts/components/conversation/Message.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,44 @@ story.add('Image', () => {
return renderBothDirections(props);
});

story.add('Multiple Images', () => {
const props = createProps({
attachments: [
{
url: '/fixtures/tina-rolf-269345-unsplash.jpg',
fileName: 'tina-rolf-269345-unsplash.jpg',
contentType: IMAGE_JPEG,
width: 128,
height: 128,
},
{
url: '/fixtures/tina-rolf-269345-unsplash.jpg',
fileName: 'tina-rolf-269345-unsplash.jpg',
contentType: IMAGE_JPEG,
width: 128,
height: 128,
},
{
url: '/fixtures/tina-rolf-269345-unsplash.jpg',
fileName: 'tina-rolf-269345-unsplash.jpg',
contentType: IMAGE_JPEG,
width: 128,
height: 128,
},
{
url: '/fixtures/tina-rolf-269345-unsplash.jpg',
fileName: 'tina-rolf-269345-unsplash.jpg',
contentType: IMAGE_JPEG,
width: 128,
height: 128,
},
],
status: 'sent',
});

return renderBothDirections(props);
});

story.add('Image with Caption', () => {
const props = createProps({
attachments: [
Expand Down

0 comments on commit 430d600

Please sign in to comment.