Skip to content

Commit a41e4e4

Browse files
committed
Revert "Fix wide image overflowing from the thumbnail container (matrix-org#8663)"
This reverts commit 5082d67.
1 parent 15c2fb6 commit a41e4e4

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

res/css/views/messages/_MImageBody.scss

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,12 @@ $timeline-image-border-radius: 8px;
5454
}
5555
}
5656

57-
.mx_MImageBody {
58-
.mx_MImageBody_thumbnail_container {
59-
border-radius: $timeline-image-border-radius;
60-
61-
// Necessary for the border radius to apply correctly to the placeholder
62-
overflow: hidden;
63-
contain: paint;
64-
65-
// Override inline max-width value to avoid overflow
66-
max-width: 100% !important;
57+
.mx_MImageBody_thumbnail_container {
58+
border-radius: $timeline-image-border-radius;
6759

68-
.mx_MImageBody_thumbnail {
69-
// Apply the border radius to an image directly.
70-
// This is necessary for images smaller than the placeholder.
71-
border-radius: $timeline-image-border-radius;
72-
}
73-
}
60+
// Necessary for the border radius to apply correctly to the placeholder
61+
overflow: hidden;
62+
contain: paint;
7463
}
7564

7665
.mx_MImageBody_thumbnail {

0 commit comments

Comments
 (0)