mirror of https://github.com/vector-im/riot-web
This reverts commit 5082d67dc1
.
pull/28788/head^2
parent
15c2fb6b71
commit
f47121ece7
|
@ -54,23 +54,12 @@ $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;
|
|
||||||
|
|
||||||
// Necessary for the border radius to apply correctly to the placeholder
|
// Necessary for the border radius to apply correctly to the placeholder
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
contain: paint;
|
contain: paint;
|
||||||
|
|
||||||
// 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 {
|
||||||
|
|
Loading…
Reference in New Issue