mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 23:54:13 +08:00
We constrain images to a max-width of 600px. We have logic to change width and height attributes of inline attachments when both specified (and larger than 600px). This `height:auto` flag causes the image below to render at 600x600 because it's a 1x1 image: <img src="http://image.lyftmail.com/lib/fe6915707166047a7d14/m/1/spacer.gif" height="1" width="600" style="display: block; width: 600px; min-width: 600px;" border="0"> I think the height:auto case only happens when A) the image is more than 600px wide B) the image has a hard-coded height and not a hard-coded width. In this case our max-width rule will change the width and the height will be fixed. I think we should disregard this case unless we find scenarios where it happens. |
||
---|---|---|
.. | ||
components | ||
fonts/FontAwesome | ||
images | ||
mixins | ||
package-template | ||
sounds | ||
variables | ||
buttons.less | ||
email-frame.less | ||
font-awesome.min.css | ||
index.html | ||
index.js | ||
index.less | ||
inputs.less | ||
jasmine.less | ||
linux.less | ||
normalize.less | ||
resizable.less | ||
selection.less | ||
type.less | ||
utilities.less | ||
workspace.less |