You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Fix wide image overflowing from the thumbnail container (#8663)
This commit is contained in:
@@ -54,6 +54,7 @@ $timeline-image-border-radius: 8px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_MImageBody {
|
||||||
.mx_MImageBody_thumbnail_container {
|
.mx_MImageBody_thumbnail_container {
|
||||||
border-radius: $timeline-image-border-radius;
|
border-radius: $timeline-image-border-radius;
|
||||||
|
|
||||||
@@ -66,6 +67,16 @@ $timeline-image-border-radius: 8px;
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
// Override inline max-width value to avoid overflow
|
||||||
|
max-width: 100% !important;
|
||||||
|
|
||||||
|
.mx_MImageBody_thumbnail {
|
||||||
|
// Apply the border radius to an image directly.
|
||||||
|
// This is necessary for images smaller than the placeholder.
|
||||||
|
border-radius: $timeline-image-border-radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MImageBody_thumbnail {
|
.mx_MImageBody_thumbnail {
|
||||||
|
Reference in New Issue
Block a user