neo.mjs 6.33.0 → 6.34.0

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.33.0'
23
+ * @member {String} version='6.34.0'
24
24
  */
25
- version: '6.33.0'
25
+ version: '6.34.0'
26
26
  }
27
27
 
28
28
  /**
@@ -28,8 +28,9 @@ class MainContainer extends Container {
28
28
  */
29
29
  domListeners: [{
30
30
  intersect(data) {
31
- this.activePartsId = data.targetId;
32
- Neo.getComponent(data.targetId)?.activate?.()
31
+ let id = data.path[1].id;
32
+ this.activePartsId = id;
33
+ Neo.getComponent(id)?.activate?.()
33
34
  },
34
35
  scroll(event) {
35
36
  if (event.target.cls.includes('portal-home-maincontainer')) {
@@ -37,6 +38,12 @@ class MainContainer extends Container {
37
38
  }
38
39
  }
39
40
  }],
41
+ /**
42
+ * @member {Object} itemDefaults
43
+ */
44
+ itemDefaults: {
45
+ flex: 'none'
46
+ },
40
47
  /**
41
48
  * @member {Object[]} items
42
49
  */
@@ -78,7 +85,7 @@ class MainContainer extends Container {
78
85
  Neo.main.addon.IntersectionObserver.register({
79
86
  callback : 'isVisible',
80
87
  id,
81
- observe : ['.portal-home-content-view'],
88
+ observe : ['.portal-content-wrapper'],
82
89
  root : `#${id}`,
83
90
  threshold: 1.0,
84
91
  windowId
@@ -48,7 +48,7 @@ class AfterMath extends BaseContainer {
48
48
  flex: 1
49
49
  }, {
50
50
  module: FooterContainer,
51
- height: '35%'
51
+ flex : 'none'
52
52
  }]
53
53
  }
54
54
  }
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.33.0'
23
+ * @member {String} version='6.34.0'
24
24
  */
25
- version: '6.33.0'
25
+ version: '6.34.0'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.33.0",
3
+ "version": "6.34.0",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,3 +1,13 @@
1
+ body {
2
+ > .neo-viewport {
3
+ // without the snap scrolling it is possible to scroll the viewport
4
+ // by the height of the header toolbar outside the visible area
5
+ // see: https://github.com/neomjs/neo/issues/5715
6
+ position: fixed;
7
+ }
8
+ }
9
+
10
+
1
11
  .neo-viewport {
2
12
  // sometimes when transitioning between card & cube layouts, the flex value does get lost
3
13
  // see: https://github.com/neomjs/neo/issues/5637
@@ -1,5 +1,6 @@
1
1
  .portal-home-footer-container {
2
2
  background-color: black;
3
+ height : 35%;
3
4
  padding : 2em;
4
5
 
5
6
  .neo-button.neo-button-ghost {
@@ -29,8 +30,24 @@
29
30
  color : white;
30
31
  }
31
32
 
32
- @media (max-width: 600px) {
33
- padding: 1em;
33
+ @media (max-width: 800px) {
34
+ max-height: 18em;
35
+ min-height: 18em;
36
+ padding : 1em;
37
+
38
+ h2.neo-h2 {
39
+ font-size: 1.2rem;
40
+ }
41
+
42
+ .neo-button {
43
+ padding: 0 3px;
44
+ }
45
+ }
46
+
47
+ @media (max-width: 500px) {
48
+ max-height: 15em;
49
+ min-height: 15em;
50
+ padding : 1em;
34
51
 
35
52
  h2.neo-h2 {
36
53
  font-size: 1.2rem;
@@ -1,8 +1,13 @@
1
1
  .portal-home-maincontainer {
2
- overflow-x : hidden!important;
2
+ overflow-x : hidden !important;
3
3
  scroll-behavior : smooth;
4
4
  scroll-snap-type: y mandatory;
5
5
 
6
+ @media (max-width: 840px) {
7
+ scroll-behavior : unset;
8
+ scroll-snap-type: unset;
9
+ }
10
+
6
11
  /* Style and position the progress bar */
7
12
  .portal-home-progress {
8
13
  background : var(--sem-color-surface-primary-background);
@@ -1,4 +1,6 @@
1
1
  .portal-home-aftermath {
2
+ height: 60em;
3
+
2
4
  p {
3
5
  text-align: center;
4
6
  }
@@ -27,8 +27,9 @@
27
27
 
28
28
  .portal-content-text {
29
29
  @media (max-width: 600px) {
30
+ flex : .5 !important;
30
31
  justify-content: start;
31
- overflow-y : auto;
32
+ padding : 1rem;
32
33
  }
33
34
  }
34
35
 
@@ -36,8 +37,10 @@
36
37
  background-color: lightgray;
37
38
  padding : 20px;
38
39
 
39
- @media (max-width: 500px) {
40
- padding: 5px;
40
+ @media (max-width: 600px) {
41
+ max-height: 35em;
42
+ min-height: 35em;
43
+ padding : 5px;
41
44
  }
42
45
  }
43
46
  }
@@ -4,4 +4,11 @@
4
4
  flex-direction: column;
5
5
  }
6
6
  }
7
+
8
+ @media (max-width: 600px) {
9
+ .portal-content-wrapper {
10
+ max-height: 46em;
11
+ min-height: 46em;
12
+ }
13
+ }
7
14
  }
@@ -11,5 +11,10 @@
11
11
 
12
12
  @media (max-width: 700px) {
13
13
  grid-template-columns: repeat(6, 1fr);
14
+ min-height : 50%;
15
+ }
16
+
17
+ @media (max-width: 500px) {
18
+ min-height: 60%;
14
19
  }
15
20
  }
@@ -4,4 +4,10 @@
4
4
  flex-direction: column;
5
5
  }
6
6
  }
7
+
8
+ @media (max-width: 600px) {
9
+ .portal-content-text {
10
+ min-height: 40em;
11
+ }
12
+ }
7
13
  }
@@ -22,10 +22,24 @@
22
22
  padding : 20px;
23
23
  }
24
24
 
25
+ @media (max-width: 500px) {
26
+ min-height: 100%;
27
+
28
+ .portal-content-text {
29
+ flex: 1.2 !important;
30
+ }
31
+ }
32
+
25
33
  @media (max-width: 840px) {
34
+ min-height: 100%;
35
+
26
36
  &.neo-flex-container {
27
37
  flex-direction: column;
28
38
  }
39
+
40
+ .portal-content-text {
41
+ flex: 0.8 !important;
42
+ }
29
43
  }
30
44
 
31
45
  @media (max-width: 500px) {
@@ -260,12 +260,12 @@ const DefaultConfig = {
260
260
  useVdomWorker: true,
261
261
  /**
262
262
  * buildScripts/injectPackageVersion.mjs will update this value
263
- * @default '6.33.0'
263
+ * @default '6.34.0'
264
264
  * @memberOf! module:Neo
265
265
  * @name config.version
266
266
  * @type String
267
267
  */
268
- version: '6.33.0'
268
+ version: '6.34.0'
269
269
  };
270
270
 
271
271
  Object.assign(DefaultConfig, {