Message: Fix rounded corners on small media (#2196)
This commit is contained in:
parent
b3962c806c
commit
3aac8ccd6e
@ -661,10 +661,6 @@
|
||||
|
||||
.media-inner {
|
||||
overflow: hidden;
|
||||
|
||||
&.small-image img {
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.Message .custom-shape .message-action-button {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user