@brndts/brndts-ads 1.11.2 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -71686,19 +71686,17 @@ var StaticRegionContent = /*#__PURE__*/ function(RegionContent) {
|
|
71686
71686
|
{
|
71687
71687
|
key: "render",
|
71688
71688
|
value: function render(force) {
|
71689
|
-
var
|
71690
|
-
var _this_content, _this_content_extra_sz, _this_content_extra, _this_content1, _this_content_extra_sz1, _this_content_extra1, _this_content2;
|
71689
|
+
var _this_content;
|
71691
71690
|
if ((_this_content = this.content) === null || _this_content === void 0 ? void 0 : _this_content.pending) {
|
71692
71691
|
return;
|
71693
71692
|
}
|
71694
|
-
this.container.style.width = "
|
71695
|
-
this.container.style.height = "
|
71693
|
+
this.container.style.width = "fit-content";
|
71694
|
+
this.container.style.height = "fit-content";
|
71696
71695
|
this.container.dataset.state = this.box.area(this.plane.size) > 0 ? "visible" : "hidden";
|
71697
71696
|
this.container.childNodes.forEach(function(node) {
|
71698
71697
|
if (_instanceof(node, HTMLElement)) {
|
71699
|
-
|
71700
|
-
node.style.
|
71701
|
-
node.style.height = "".concat((_this_content1 = _this.content) === null || _this_content1 === void 0 ? void 0 : (_this_content_extra1 = _this_content1.extra) === null || _this_content_extra1 === void 0 ? void 0 : (_this_content_extra_sz1 = _this_content_extra1.sz) === null || _this_content_extra_sz1 === void 0 ? void 0 : _this_content_extra_sz1.h, "px");
|
71698
|
+
node.style.width = "fit-content";
|
71699
|
+
node.style.height = "fit-content";
|
71702
71700
|
}
|
71703
71701
|
});
|
71704
71702
|
}
|