lisichatbot 1.1.6 → 1.1.7
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 +1 -1
- package/src/index.js +3 -21
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -118,6 +118,7 @@ function addMessage(content, type = 'bot', hasInput = false, stepNumber = null)
|
|
|
118
118
|
editStep(stepNumber);
|
|
119
119
|
};
|
|
120
120
|
editIcon.style.setProperty('display', 'inline', 'important');
|
|
121
|
+
editIcon.style.setProperty('margin-left', '8px', 'important');
|
|
121
122
|
console.log(` ✏️ Edit icon SHOWN (step ${stepNumber} has input)`);
|
|
122
123
|
} else {
|
|
123
124
|
console.log(` ⚪ Edit icon HIDDEN (step ${stepNumber || 'N/A'} has no input)`);
|
|
@@ -127,11 +128,8 @@ function addMessage(content, type = 'bot', hasInput = false, stepNumber = null)
|
|
|
127
128
|
console.warn(' → Make sure you have: <span data-chat-element="bot-edit-icon">✏️</span>');
|
|
128
129
|
}
|
|
129
130
|
|
|
130
|
-
//
|
|
131
|
-
|
|
132
|
-
clone.style.setProperty('align-items', 'center', 'important');
|
|
133
|
-
clone.style.setProperty('gap', '8px', 'important');
|
|
134
|
-
console.log(' ✓ Wrapper flex properties set (gap: 8px)');
|
|
131
|
+
// REMOVED: No longer setting wrapper flex properties
|
|
132
|
+
// User controls wrapper styling with their own CSS
|
|
135
133
|
}
|
|
136
134
|
|
|
137
135
|
// Make clone visible
|
|
@@ -760,22 +758,6 @@ function injectStyles() {
|
|
|
760
758
|
const style = document.createElement('style');
|
|
761
759
|
style.id = styleId;
|
|
762
760
|
style.textContent = `
|
|
763
|
-
/* Bot message spacing and alignment */
|
|
764
|
-
[data-chat-element="bot-message-wrapper"] {
|
|
765
|
-
margin-bottom: 16px;
|
|
766
|
-
display: inline-flex;
|
|
767
|
-
align-items: center;
|
|
768
|
-
gap: 8px;
|
|
769
|
-
max-width: 70%;
|
|
770
|
-
align-self: flex-start;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/* Bot message natural width from left */
|
|
774
|
-
[data-chat-element="bot-message-text"] {
|
|
775
|
-
width: auto;
|
|
776
|
-
display: inline-block;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
761
|
/* User message spacing and alignment */
|
|
780
762
|
[data-chat-element="user-message-wrapper"] {
|
|
781
763
|
margin-bottom: 16px;
|