lisichatbot 1.7.7 → 1.7.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -51,11 +51,10 @@ let flowData = null;
51
51
  function scrollToBottom() {
52
52
  if (!elements.messages) return;
53
53
 
54
- // ✅ Force scroll to a very large number to ensure we're at bottom
55
- // This works even when container is growing dynamically
56
- elements.messages.scrollTop = 999999;
54
+ // ✅ Scroll to bottom + extra padding to ensure everything is visible
55
+ elements.messages.scrollTop = elements.messages.scrollHeight + 200;
57
56
 
58
- console.log(` 📜 Forced scroll to bottom (scrollTop set to 999999)`);
57
+ console.log(` 📜 Forced scroll to: ${elements.messages.scrollHeight + 200}px (height: ${elements.messages.scrollHeight}px)`);
59
58
  }
60
59
 
61
60
  function enableNextButton() {
@@ -1052,7 +1051,7 @@ function renderMinMaxInputs(field, customConfig, existingData) {
1052
1051
  rangeWrapper.setAttribute('data-field', field);
1053
1052
  rangeWrapper.style.marginBottom = '16px';
1054
1053
  rangeWrapper.style.display = 'flex';
1055
- rangeWrapper.style.gap = '16px';
1054
+ rangeWrapper.style.gap = '0px';
1056
1055
  rangeWrapper.style.flexWrap = 'wrap';
1057
1056
 
1058
1057
  const showMinMax = existingData !== undefined &&
@@ -1063,7 +1062,7 @@ function renderMinMaxInputs(field, customConfig, existingData) {
1063
1062
 
1064
1063
  const minClone = minTemplate.cloneNode(true);
1065
1064
  minClone.style.display = '';
1066
- minClone.style.marginRight = '16px';
1065
+ minClone.style.marginRight = '0px';
1067
1066
  minClone.style.marginBottom = '12px';
1068
1067
  minClone.style.width = 'auto';
1069
1068
  minClone.style.flex = 'none';