This is handled via base class

This commit is contained in:
Tamius Han 2020-11-05 23:56:06 +01:00
parent f8e3a39620
commit 1e70ea51cf

View File

@ -670,11 +670,6 @@ class Resizer {
const styleArray = this.buildStyleArray('', extraStyleString)
// sometimes, site designers will center <video> by setting margin: to something. We do not like that, as
// it prevents extension from working properly
// no `height: inital !important;` because that breaks youtube.
styleArray.push('margin: 0px 0px 0px 0px !important; width: initial !important; align-self: start !important; justify-self: start !important;');
// add remaining elements
if (stretchFactors) {
styleArray.push(`transform: translate(${translate.x}px, ${translate.y}px) scale(${stretchFactors.xFactor}, ${stretchFactors.yFactor}) !important;`);