@reuters-graphics/graphics-components 1.0.9 → 1.0.11

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.
@@ -51,7 +51,14 @@ onMount(() => {
51
51
  <div class="ad-block">
52
52
  <div class="ad-label">Advertisement · Scroll to continue</div>
53
53
  <div class="ad-container">
54
- <div data-freestar-ad="{dataFreestarAd || null}" id="{randomAdId}"></div>
54
+ <div class="ad-slot__inner">
55
+ <div>
56
+ <div
57
+ data-freestar-ad="{dataFreestarAd || null}"
58
+ id="{randomAdId}"
59
+ ></div>
60
+ </div>
61
+ </div>
55
62
  </div>
56
63
  </div>
57
64
  </Block>
@@ -70,6 +77,10 @@ div.ad-block div.ad-label {
70
77
  text-align: center;
71
78
  }
72
79
  div.ad-block div.ad-container {
80
+ display: flex;
81
+ flex-direction: column;
82
+ justify-content: center;
83
+ align-items: center;
73
84
  min-height: 415px;
74
85
  }
75
86
  @media (max-width: 767.9px) {
@@ -77,9 +88,18 @@ div.ad-block div.ad-container {
77
88
  min-height: 320px;
78
89
  }
79
90
  }
80
- div.ad-block div.ad-container > div {
91
+ div.ad-block div.ad-container div.ad-slot__inner {
92
+ margin: auto 0;
93
+ width: 100%;
94
+ max-width: 100%;
95
+ flex: unset;
96
+ }
97
+ div.ad-block div.ad-container div.ad-slot__inner > div {
98
+ display: block;
99
+ }
100
+ div.ad-block div.ad-container div.ad-slot__inner > div div[data-freestar-ad] {
81
101
  display: flex;
82
102
  flex-direction: column;
83
- align-items: center;
84
103
  justify-content: center;
104
+ align-items: center;
85
105
  }</style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",