Skip to content

Commit

Permalink
fix: [Chat] Modify the problem that the picture will be deformed when…
Browse files Browse the repository at this point in the history
… the picture ratio is not 1:1 (#2496)
  • Loading branch information
YyumeiZhang authored Sep 14, 2024
1 parent 2a066f3 commit f182880
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/semi-foundation/chat/chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ $module: #{$prefix}-chat;
&-img {
border-radius: $radius-chat_attachment_img;
vertical-align: top;

img {
object-fit: cover;
}
}

a {
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-ui/chat/_story/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const infoWithAttachment = [
{
type: 'image_url',
image_url: {
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/edit-bag.jpeg',
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/other/avatar-vertical.jpeg',
},
},
{
Expand Down

0 comments on commit f182880

Please sign in to comment.