Use CSS to constrain auto-oriented images

This commit is contained in:
Daniel Gasienica 2018-02-09 14:38:04 -05:00
parent f4d3392687
commit 62fd744f9f
2 changed files with 4 additions and 6 deletions

View File

@ -22,11 +22,6 @@
this.update();
}, {
orientation: true,
// From CSS:
// maxWidth: 30em --> 420px
// maxHeight: 300px
maxWidth: 420,
maxHeight: 300,
});
},
events: {

View File

@ -568,7 +568,10 @@ span.status {
background-color: #ccc;
}
img, audio, video {
img,
canvas, /* used for auto-oriented images from `loadImage` */
audio,
video {
max-width: 100%;
max-height: 300px;
}