Message: Fix rounded corners on small media (#2196)

This commit is contained in:
Alexander Zinchuk 2022-12-07 17:38:32 +01:00
parent b3962c806c
commit 3aac8ccd6e
2 changed files with 1 additions and 5 deletions

View File

@ -661,10 +661,6 @@
.media-inner {
overflow: hidden;
&.small-image img {
border-radius: 0 !important;
}
}
.Message .custom-shape .message-action-button {

View File

@ -607,7 +607,7 @@ const Message: FC<OwnProps & StateProps> = ({
if (width) {
calculatedWidth = Math.max(getMinMediaWidth(Boolean(text), withCommentButton), width);
if (calculatedWidth - width > NO_MEDIA_CORNERS_THRESHOLD) {
if (invoice?.extendedMedia && calculatedWidth - width > NO_MEDIA_CORNERS_THRESHOLD) {
noMediaCorners = true;
}
}