File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,29 @@ $timeline-image-border-radius: 8px;
5454 }
5555}
5656
57- .mx_MImageBody_thumbnail_container {
58- border-radius : $timeline-image-border-radius ;
59-
60- // Necessary for the border radius to apply correctly to the placeholder
61- overflow : hidden ;
62- contain : paint;
63-
64- min-height : $font-44px ;
65- min-width : $font-44px ;
66- display : flex ;
67- justify-content : center ;
68- align-items : center ;
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+ min-height : $font-44px ;
66+ min-width : $font-44px ;
67+ display : flex ;
68+ justify-content : center ;
69+ align-items : center ;
70+
71+ // Override inline max-width value to avoid overflow
72+ max-width : 100% !important ;
73+
74+ .mx_MImageBody_thumbnail {
75+ // Apply the border radius to an image directly.
76+ // This is necessary for images smaller than the placeholder.
77+ border-radius : $timeline-image-border-radius ;
78+ }
79+ }
6980}
7081
7182.mx_MImageBody_thumbnail {
You can’t perform that action at this time.
0 commit comments