@alliance-droid/chat-widget 0.1.4 → 0.1.5
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
|
|
58
|
+
<div class="flex flex-col h-full bg-surface rounded-2xl shadow-xl border border-border {className}" style="width: 100%; min-width: 0; overflow: hidden;">
|
|
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}
|
|
@@ -106,7 +106,8 @@
|
|
|
106
106
|
<div class="fixed bottom-4 {positionClasses()} z-50 flex flex-col {alignmentClass()} {themeClass()} {className}">
|
|
107
107
|
{#if isOpen}
|
|
108
108
|
<div
|
|
109
|
-
class="
|
|
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;"
|
|
110
111
|
>
|
|
111
112
|
<ChatPanel
|
|
112
113
|
messages={$messages}
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
}
|
|
43
43
|
</script>
|
|
44
44
|
|
|
45
|
-
<div class="flex flex-col gap-1
|
|
45
|
+
<div class="flex flex-col gap-1 {className}" class:items-end={isUser} style="min-width: 0; width: 100%;">
|
|
46
46
|
{#if senderLabel() && !isUser}
|
|
47
47
|
<span class="text-xs text-foreground-tertiary px-1">{senderLabel()}</span>
|
|
48
48
|
{/if}
|
|
49
49
|
|
|
50
|
-
<div class="
|
|
51
|
-
<p
|
|
50
|
+
<div class="rounded-2xl px-4 py-2 {bubbleClasses()}" style="max-width: 80%; overflow: hidden; word-wrap: break-word;">
|
|
51
|
+
<p style="white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;">{message.content}</p>
|
|
52
52
|
{#if message.streaming}
|
|
53
53
|
<span class="inline-block w-2 h-4 bg-current animate-pulse ml-1">|</span>
|
|
54
54
|
{/if}
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
|
|
38
38
|
<div
|
|
39
39
|
bind:this={listElement}
|
|
40
|
-
class="flex-1
|
|
40
|
+
class="flex-1 p-4 space-y-4 {className}"
|
|
41
|
+
style="min-width: 0; overflow-y: auto; overflow-x: hidden;"
|
|
41
42
|
>
|
|
42
43
|
{#if messages.length === 0}
|
|
43
44
|
<div class="flex items-center justify-center h-full text-foreground-tertiary">
|