diff options
author | Stephen Kraus <8003332+stephenmk@users.noreply.github.com> | 2024-01-27 03:12:29 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 09:12:29 +0000 |
commit | 1c258f7207faad0c1489fb24fb31694e32064914 (patch) | |
tree | 5e00732b76f7d13572fa7a103d72e3b4cf25db7b /ext/js/dictionary/dictionary-importer.js | |
parent | 3c76b878e9ddcc8fa52d00fc85f561bbb72c5dd1 (diff) |
Add border styling options for structured content images (#577)
* Add border styling options for structured content images
* Replace border style, width, and color properties with shorthand
---------
Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
Diffstat (limited to 'ext/js/dictionary/dictionary-importer.js')
-rw-r--r-- | ext/js/dictionary/dictionary-importer.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/js/dictionary/dictionary-importer.js b/ext/js/dictionary/dictionary-importer.js index c8f68d78..0feed8b2 100644 --- a/ext/js/dictionary/dictionary-importer.js +++ b/ext/js/dictionary/dictionary-importer.js @@ -486,9 +486,16 @@ export class DictionaryImporter { * @param {import('dictionary-database').DatabaseTermEntry} entry */ async _resolveStructuredContentImage(context, target, source, entry) { - const {verticalAlign, sizeUnits} = source; + const { + verticalAlign, + border, + borderRadius, + sizeUnits + } = source; await this._createImageData(context, target, source, entry); if (typeof verticalAlign === 'string') { target.verticalAlign = verticalAlign; } + if (typeof border === 'string') { target.border = border; } + if (typeof borderRadius === 'string') { target.borderRadius = borderRadius; } if (typeof sizeUnits === 'string') { target.sizeUnits = sizeUnits; } } |