@luckydraw/cumulus 0.31.13 → 0.31.14
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/CHANGELOG.md +4 -0
- package/dist/gateway/static/widget.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -687,10 +687,11 @@
|
|
|
687
687
|
' font-size: 14px;',
|
|
688
688
|
' font-family: inherit;',
|
|
689
689
|
' resize: none;',
|
|
690
|
-
' min-height: 2.
|
|
690
|
+
' min-height: 2.8em;',
|
|
691
691
|
' max-height: 120px;',
|
|
692
692
|
' outline: none;',
|
|
693
693
|
' line-height: 1.5;',
|
|
694
|
+
' overflow: hidden;',
|
|
694
695
|
'}',
|
|
695
696
|
'.cumulus-input:focus { border-color: #0066cc; }',
|
|
696
697
|
'.cumulus-input::placeholder { color: #666; }',
|
|
@@ -3735,6 +3736,7 @@
|
|
|
3735
3736
|
messages.push({ role: 'user', content: displayText, attachments: attachSnapshot });
|
|
3736
3737
|
input.value = '';
|
|
3737
3738
|
input.style.height = 'auto';
|
|
3739
|
+
input.style.overflowY = 'hidden';
|
|
3738
3740
|
pendingAttachments = [];
|
|
3739
3741
|
renderAttachStrip();
|
|
3740
3742
|
streaming = true;
|
|
@@ -3781,6 +3783,7 @@
|
|
|
3781
3783
|
input.addEventListener('input', function () {
|
|
3782
3784
|
input.style.height = 'auto';
|
|
3783
3785
|
input.style.height = Math.min(input.scrollHeight, 120) + 'px';
|
|
3786
|
+
input.style.overflowY = input.scrollHeight > 120 ? 'auto' : 'hidden';
|
|
3784
3787
|
});
|
|
3785
3788
|
input.addEventListener('paste', function (e) {
|
|
3786
3789
|
var items = e.clipboardData && e.clipboardData.items;
|
|
@@ -5681,6 +5684,7 @@
|
|
|
5681
5684
|
requestAnimationFrame(function () {
|
|
5682
5685
|
inputEl.style.height = 'auto';
|
|
5683
5686
|
inputEl.style.height = Math.min(inputEl.scrollHeight, 120) + 'px';
|
|
5687
|
+
inputEl.style.overflowY = inputEl.scrollHeight > 120 ? 'auto' : 'hidden';
|
|
5684
5688
|
});
|
|
5685
5689
|
}
|
|
5686
5690
|
|
|
@@ -6401,6 +6405,7 @@
|
|
|
6401
6405
|
state.messages.push({ role: 'user', content: displayText, attachments: attachSnapshot });
|
|
6402
6406
|
inputEl.value = '';
|
|
6403
6407
|
inputEl.style.height = 'auto';
|
|
6408
|
+
inputEl.style.overflowY = 'hidden';
|
|
6404
6409
|
state.draft = '';
|
|
6405
6410
|
state.pendingAttachments = [];
|
|
6406
6411
|
renderPanelAttachStrip();
|
|
@@ -6455,6 +6460,7 @@
|
|
|
6455
6460
|
inputEl.addEventListener('input', function () {
|
|
6456
6461
|
inputEl.style.height = 'auto';
|
|
6457
6462
|
inputEl.style.height = Math.min(inputEl.scrollHeight, 120) + 'px';
|
|
6463
|
+
inputEl.style.overflowY = inputEl.scrollHeight > 120 ? 'auto' : 'hidden';
|
|
6458
6464
|
// Persist draft per thread
|
|
6459
6465
|
state.draft = inputEl.value;
|
|
6460
6466
|
// Update send button label (Send vs Stop) based on input content
|