From 6fb82c5c19772919ceef24dfa02a8d20dda18713 Mon Sep 17 00:00:00 2001 From: Definitely Not Vlad Date: Tue, 27 Jul 2021 13:24:07 +0200 Subject: [PATCH 1/2] Adjust conditioning for figure styling (#622) --- html/components/SimpleHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/components/SimpleHtml.js b/html/components/SimpleHtml.js index 1f447607..3225f077 100644 --- a/html/components/SimpleHtml.js +++ b/html/components/SimpleHtml.js @@ -71,7 +71,7 @@ class SimpleHtml extends PureComponent { const nodeStyle = cssStringToObject(styleAttrib); const source = _.get(firstChild, 'attribs.src', ''); - const resolvedNodeStyle = !isValidVideoFormat(source) + const resolvedNodeStyle = isValidVideoFormat(source) ? _.omit(nodeStyle, ['height', 'padding-bottom']) : nodeStyle; From e800690e3b6a87eef40f93c4112c5ca7f16b465d Mon Sep 17 00:00:00 2001 From: Definitely-Not-Vlad Date: Tue, 27 Jul 2021 13:24:53 +0200 Subject: [PATCH 2/2] Bump patch version 4.5.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index bd481c4b..60dba773 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@shoutem/ui", - "version": "4.5.0", + "version": "4.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7d51db83..a97df363 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shoutem/ui", - "version": "4.5.0", + "version": "4.5.1", "description": "Styleable set of components for React Native applications", "scripts": { "lint": "eslint .",