mirror of
https://github.com/elyby/emails-renderer.git
synced 2024-11-22 21:23:12 +05:30
Resolves #1. Add styles for images alt texts
This commit is contained in:
parent
7a62d608d1
commit
fead1b50b2
@ -46,7 +46,7 @@ module.exports = async function(content) {
|
||||
const targetWidth = Math.ceil(width / scale);
|
||||
const targetHeight = Math.ceil(height / scale);
|
||||
|
||||
resolve(`<img src="${src}" alt="${text}" width="${targetWidth}" height="${targetHeight}" style="vertical-align: middle" />`);
|
||||
resolve(`<img src="${src}" alt="${text}" width="${targetWidth}" height="${targetHeight}" style="font-size: ${size}px; color: ${color}; vertical-align: middle" />`);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -2746,11 +2746,11 @@ extend@~3.0.2:
|
||||
"extended-translations-loader@file:webpack-utils/extended-translations-loader":
|
||||
version "1.0.0"
|
||||
dependencies:
|
||||
"@lesechos/image-size-loader" "file:../../Library/Caches/Yarn/v6/npm-extended-translations-loader-1.0.0-2a404bf5-e6c1-4416-ac35-d35a69d061a8-1594902075342/node_modules/image-size-loader"
|
||||
"@lesechos/image-size-loader" "file:../../Library/Caches/Yarn/v6/npm-extended-translations-loader-1.0.0-933f9d99-bd59-4d39-b59d-8350c97ab0e9-1594903645361/node_modules/image-size-loader"
|
||||
glob "^7.1.4"
|
||||
loader-utils "^1.2.3"
|
||||
qs "^6.0.0"
|
||||
text2png-loader "file:../../Library/Caches/Yarn/v6/npm-extended-translations-loader-1.0.0-2a404bf5-e6c1-4416-ac35-d35a69d061a8-1594902075342/node_modules/text2png-loader"
|
||||
text2png-loader "file:../../Library/Caches/Yarn/v6/npm-extended-translations-loader-1.0.0-933f9d99-bd59-4d39-b59d-8350c97ab0e9-1594903645361/node_modules/text2png-loader"
|
||||
tmp "^0.0.33"
|
||||
|
||||
external-editor@^3.0.3:
|
||||
|
Loading…
Reference in New Issue
Block a user