Message: Fix rounded corners on small media (#2196)
This commit is contained in:
parent
b3962c806c
commit
3aac8ccd6e
@ -661,10 +661,6 @@
|
|||||||
|
|
||||||
.media-inner {
|
.media-inner {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
&.small-image img {
|
|
||||||
border-radius: 0 !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.Message .custom-shape .message-action-button {
|
.Message .custom-shape .message-action-button {
|
||||||
|
|||||||
@ -607,7 +607,7 @@ const Message: FC<OwnProps & StateProps> = ({
|
|||||||
|
|
||||||
if (width) {
|
if (width) {
|
||||||
calculatedWidth = Math.max(getMinMediaWidth(Boolean(text), withCommentButton), 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;
|
noMediaCorners = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user