Implement slightly hacky CSS soln. to thumbnail sizing

As the slightly nicer alternative to fixupHeight being applied once
we actually have a timelineWidth.

The niceness comes from not needing timelineWidth, which means we can
implement at render time with CSS. (Despite still calculating aspect
ratios when we render.)
This commit is contained in:
Luke Barnard 2018-05-17 18:15:34 +01:00
parent bf0ec249b6
commit b28ed6075b
2 changed files with 29 additions and 50 deletions

View file

@ -20,5 +20,14 @@ limitations under the License.
}
.mx_MImageBody_thumbnail {
max-width: 100%;
}
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.mx_MImageBody_thumbnail_container {
overflow: hidden;
position: relative;
}