@inizioevoke/veeva-astroclm 1.1.2 → 1.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm",
3
3
  "type": "module",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "bin": "./bin/create.js",
6
6
  "scripts": {
7
7
  "start": "astro dev",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@astrojs/preact": "^6.0.6",
29
29
  "@inizioevoke/astro-core": "^3.3.1",
30
- "@inizioevoke/veeva-astroclm-core": "^1.4.3",
30
+ "@inizioevoke/veeva-astroclm-core": "^1.4.4",
31
31
  "@inizioevoke/veeva-clmjs": "^1.0.1",
32
32
  "@inizioevoke/veeva-iva": "^1.3.2",
33
33
  "astro": "^7.3.8",
@@ -48,11 +48,11 @@ const pathname = Astro.url.pathname;
48
48
  <div class="body-wrapper scaling-wrapper">
49
49
  <ResizeScript width={SCREEN_WIDTH} height={SCREEN_HEIGHT} />
50
50
  <slot />
51
- { BUILD_TARGET === 'web' && WEB_ENV !== "production" && <VeevaControls reactions={false} /> }
52
51
  <ModalOverlay />
53
52
  </div>
54
53
  </div>
55
-
54
+
55
+ { BUILD_TARGET === 'web' && WEB_ENV !== "production" && <VeevaControls reactions={false} /> }
56
56
  <IvaConsole />
57
57
 
58
58
  <script>
@@ -42,8 +42,11 @@ body {
42
42
  background-color: var(--dark-gray);
43
43
 
44
44
  // center web viewport dimensions are larger than the IVA dimensions
45
+ // (skipped once ResizeScript takes over via the .scaled class — otherwise this
46
+ // flex centering stacks with the script's own transform/translate centering and
47
+ // pushes scaled-up content out of the viewport)
45
48
  @media screen and (min-width: #{vars.$screen-width + 1px}) and (min-height: #{vars.$screen-height + 1px}) {
46
- .body-outer {
49
+ &:not(.scaled) .body-outer {
47
50
  display: flex;
48
51
  justify-content: center;
49
52
  align-items: center;
@@ -60,6 +63,14 @@ body {
60
63
  overflow: hidden;
61
64
  width: 100vw;
62
65
  height: 100vh;
66
+ .body-outer {
67
+ // pin to the viewport so the unscaled layout size (.body-wrapper's native
68
+ // width/height) never exceeds it and introduces scroll — overflow:hidden on
69
+ // body alone isn't reliably propagated in every browser/webview
70
+ width: 100vw;
71
+ height: 100vh;
72
+ overflow: hidden;
73
+ }
63
74
  .scaling-wrapper {
64
75
  margin: unset;
65
76
  transform-origin: left top;