@hivegpt/hiveai-angular 0.0.207 → 0.0.208
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/bundles/hivegpt-hiveai-angular.umd.js +9 -0
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +10 -1
- package/fesm2015/hivegpt-hiveai-angular.js +9 -0
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/hivegpt-hiveai-angular.metadata.json +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts +1 -0
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1103,6 +1103,13 @@
|
|
|
1103
1103
|
copied: false,
|
|
1104
1104
|
isCollapsedTrue: false
|
|
1105
1105
|
});
|
|
1106
|
+
try {
|
|
1107
|
+
var textarea = this.myInput.nativeElement;
|
|
1108
|
+
textarea.style.height = 'hidden'; // Reset the height
|
|
1109
|
+
textarea.style.height = "62px";
|
|
1110
|
+
}
|
|
1111
|
+
catch (error) {
|
|
1112
|
+
}
|
|
1106
1113
|
this.cdr.markForCheck();
|
|
1107
1114
|
this.aiResponse = '';
|
|
1108
1115
|
this.isChatingWithAi = true;
|
|
@@ -1717,6 +1724,7 @@
|
|
|
1717
1724
|
textarea.style.height = textarea.scrollHeight + "px"; // Adjust height to match content
|
|
1718
1725
|
// Ensure the height doesn't exceed the max-height set in CSS
|
|
1719
1726
|
if (textarea.scrollHeight > 250) {
|
|
1727
|
+
textarea.style.height = "250px"; // Adjust height to match content
|
|
1720
1728
|
textarea.style.overflowY = 'auto'; // Enable scrolling if content exceeds 400px
|
|
1721
1729
|
}
|
|
1722
1730
|
else {
|
|
@@ -1744,6 +1752,7 @@
|
|
|
1744
1752
|
]; };
|
|
1745
1753
|
ChatDrawerComponent.propDecorators = {
|
|
1746
1754
|
chatMain: [{ type: i0.ViewChild, args: ['chatMain',] }],
|
|
1755
|
+
myInput: [{ type: i0.ViewChild, args: ['myInput',] }],
|
|
1747
1756
|
closePlaygroundButtons: [{ type: i0.ViewChildren, args: ['closeplaygroundbutton',] }],
|
|
1748
1757
|
drawer: [{ type: i0.ViewChild, args: ['drawer',] }],
|
|
1749
1758
|
sourcesDrawer: [{ type: i0.ViewChild, args: ['sourcesDrawer',] }],
|