Use CSS to constrain auto-oriented images
This commit is contained in:
parent
f4d3392687
commit
62fd744f9f
|
@ -22,11 +22,6 @@
|
|||
this.update();
|
||||
}, {
|
||||
orientation: true,
|
||||
// From CSS:
|
||||
// maxWidth: 30em --> 420px
|
||||
// maxHeight: 300px
|
||||
maxWidth: 420,
|
||||
maxHeight: 300,
|
||||
});
|
||||
},
|
||||
events: {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue