ninegrid2 6.278.0 → 6.280.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,7 +20,7 @@ class aiMessage extends HTMLElement
20
20
  <span title="${message}" class="message">
21
21
  ${message}
22
22
  </span>
23
- <span class="more">more</span>
23
+ <span class="more" style="position:relative;"><a href="javascript:alert('aaa');">more</a></span>
24
24
  </div>
25
25
 
26
26
  <div class="chat-menu">
@@ -41,6 +41,16 @@ class aiMessage extends HTMLElement
41
41
  console.log(elMessage, elMessage.scrollWidth, elMessage.clientWidth, elMessage.offsetWidth);
42
42
 
43
43
  elMore.style.display = (elMessage.scrollWidth > elMessage.clientWidth) ? "flex" : "none";
44
+ if (elMessage.scrollWidth > elMessage.clientWidth) {
45
+ elMore.style.display = "flex";
46
+ elMore.style.position = "absolute";
47
+ //elMore.style.position = "absolute";
48
+ //elMore.style.position = "absolute";
49
+ //elMore.style.position = "absolute";
50
+ }
51
+ else {
52
+ elMore.style.display = "none";
53
+ }
44
54
  }, 100);
45
55
 
46
56
  };
@@ -27302,7 +27302,7 @@ class aiMessage extends HTMLElement
27302
27302
  <span title="${message}" class="message">
27303
27303
  ${message}
27304
27304
  </span>
27305
- <span class="more">more</span>
27305
+ <span class="more" style="position:relative;"><a href="javascript:alert('aaa');">more</a></span>
27306
27306
  </div>
27307
27307
 
27308
27308
  <div class="chat-menu">
@@ -27323,6 +27323,16 @@ class aiMessage extends HTMLElement
27323
27323
  console.log(elMessage, elMessage.scrollWidth, elMessage.clientWidth, elMessage.offsetWidth);
27324
27324
 
27325
27325
  elMore.style.display = (elMessage.scrollWidth > elMessage.clientWidth) ? "flex" : "none";
27326
+ if (elMessage.scrollWidth > elMessage.clientWidth) {
27327
+ elMore.style.display = "flex";
27328
+ elMore.style.position = "absolute";
27329
+ //elMore.style.position = "absolute";
27330
+ //elMore.style.position = "absolute";
27331
+ //elMore.style.position = "absolute";
27332
+ }
27333
+ else {
27334
+ elMore.style.display = "none";
27335
+ }
27326
27336
  }, 100);
27327
27337
 
27328
27338
  };
@@ -27300,7 +27300,7 @@ class aiMessage extends HTMLElement
27300
27300
  <span title="${message}" class="message">
27301
27301
  ${message}
27302
27302
  </span>
27303
- <span class="more">more</span>
27303
+ <span class="more" style="position:relative;"><a href="javascript:alert('aaa');">more</a></span>
27304
27304
  </div>
27305
27305
 
27306
27306
  <div class="chat-menu">
@@ -27321,6 +27321,16 @@ class aiMessage extends HTMLElement
27321
27321
  console.log(elMessage, elMessage.scrollWidth, elMessage.clientWidth, elMessage.offsetWidth);
27322
27322
 
27323
27323
  elMore.style.display = (elMessage.scrollWidth > elMessage.clientWidth) ? "flex" : "none";
27324
+ if (elMessage.scrollWidth > elMessage.clientWidth) {
27325
+ elMore.style.display = "flex";
27326
+ elMore.style.position = "absolute";
27327
+ //elMore.style.position = "absolute";
27328
+ //elMore.style.position = "absolute";
27329
+ //elMore.style.position = "absolute";
27330
+ }
27331
+ else {
27332
+ elMore.style.display = "none";
27333
+ }
27324
27334
  }, 100);
27325
27335
 
27326
27336
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.278.0",
4
+ "version": "6.280.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -20,7 +20,7 @@ class aiMessage extends HTMLElement
20
20
  <span title="${message}" class="message">
21
21
  ${message}
22
22
  </span>
23
- <span class="more">more</span>
23
+ <span class="more" style="position:relative;"><a href="javascript:alert('aaa');">more</a></span>
24
24
  </div>
25
25
 
26
26
  <div class="chat-menu">
@@ -41,6 +41,16 @@ class aiMessage extends HTMLElement
41
41
  console.log(elMessage, elMessage.scrollWidth, elMessage.clientWidth, elMessage.offsetWidth);
42
42
 
43
43
  elMore.style.display = (elMessage.scrollWidth > elMessage.clientWidth) ? "flex" : "none";
44
+ if (elMessage.scrollWidth > elMessage.clientWidth) {
45
+ elMore.style.display = "flex";
46
+ elMore.style.position = "absolute";
47
+ //elMore.style.position = "absolute";
48
+ //elMore.style.position = "absolute";
49
+ //elMore.style.position = "absolute";
50
+ }
51
+ else {
52
+ elMore.style.display = "none";
53
+ }
44
54
  }, 100);
45
55
 
46
56
  };