@alliance-droid/chat-widget 0.1.5 → 0.1.6
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.
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
});
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<div class="flex flex-col h-full bg-surface rounded-2xl shadow-xl border border-border {className}"
|
|
58
|
+
<div class="chat-panel flex flex-col h-full bg-surface rounded-2xl shadow-xl border border-border {className}">
|
|
59
59
|
<!-- Header -->
|
|
60
60
|
<div class="flex items-center justify-between px-4 py-3 border-b border-border bg-surface">
|
|
61
61
|
{#if header}
|
|
@@ -115,3 +115,11 @@
|
|
|
115
115
|
</div>
|
|
116
116
|
{/if}
|
|
117
117
|
</div>
|
|
118
|
+
|
|
119
|
+
<style>
|
|
120
|
+
.chat-panel {
|
|
121
|
+
width: 100%;
|
|
122
|
+
min-width: 0;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
@@ -105,10 +105,7 @@
|
|
|
105
105
|
|
|
106
106
|
<div class="fixed bottom-4 {positionClasses()} z-50 flex flex-col {alignmentClass()} {themeClass()} {className}">
|
|
107
107
|
{#if isOpen}
|
|
108
|
-
<div
|
|
109
|
-
class="mb-4 overflow-hidden animate-in fade-in slide-in-from-bottom-4 duration-200"
|
|
110
|
-
style="width: 380px; min-width: 380px; max-width: 380px; height: 600px; max-height: 80vh;"
|
|
111
|
-
>
|
|
108
|
+
<div class="chat-container mb-4 animate-in">
|
|
112
109
|
<ChatPanel
|
|
113
110
|
messages={$messages}
|
|
114
111
|
status={$status}
|
|
@@ -157,6 +154,16 @@
|
|
|
157
154
|
</div>
|
|
158
155
|
|
|
159
156
|
<style>
|
|
157
|
+
.chat-container {
|
|
158
|
+
width: 380px !important;
|
|
159
|
+
min-width: 380px !important;
|
|
160
|
+
max-width: 380px !important;
|
|
161
|
+
height: 600px;
|
|
162
|
+
max-height: 80vh;
|
|
163
|
+
overflow: hidden !important;
|
|
164
|
+
contain: strict;
|
|
165
|
+
}
|
|
166
|
+
|
|
160
167
|
@keyframes fade-in {
|
|
161
168
|
from { opacity: 0; }
|
|
162
169
|
to { opacity: 1; }
|