mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Use CSS to constrain auto-oriented images
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user