@alliance-droid/chat-widget 0.1.3 → 0.1.4
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 overflow-hidden {className}">
|
|
58
|
+
<div class="flex flex-col h-full w-full min-w-0 bg-surface rounded-2xl shadow-xl border border-border overflow-hidden {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}
|
|
@@ -106,7 +106,7 @@
|
|
|
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="w-[380px] max-w-[
|
|
109
|
+
class="w-[380px] min-w-[380px] max-w-[380px] h-[600px] max-h-[80vh] mb-4 overflow-hidden animate-in fade-in slide-in-from-bottom-4 duration-200"
|
|
110
110
|
>
|
|
111
111
|
<ChatPanel
|
|
112
112
|
messages={$messages}
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
}
|
|
43
43
|
</script>
|
|
44
44
|
|
|
45
|
-
<div class="flex flex-col gap-1 {className}" class:items-end={isUser}>
|
|
45
|
+
<div class="flex flex-col gap-1 min-w-0 w-full {className}" class:items-end={isUser}>
|
|
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="max-w-[80%] rounded-2xl px-4 py-2 {bubbleClasses()}">
|
|
51
|
-
<p class="whitespace-pre-wrap break-words">{message.content}</p>
|
|
50
|
+
<div class="max-w-[80%] rounded-2xl px-4 py-2 overflow-hidden {bubbleClasses()}">
|
|
51
|
+
<p class="whitespace-pre-wrap break-words 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,7 @@
|
|
|
37
37
|
|
|
38
38
|
<div
|
|
39
39
|
bind:this={listElement}
|
|
40
|
-
class="flex-1 overflow-y-auto p-4 space-y-4 {className}"
|
|
40
|
+
class="flex-1 min-w-0 overflow-y-auto overflow-x-hidden p-4 space-y-4 {className}"
|
|
41
41
|
>
|
|
42
42
|
{#if messages.length === 0}
|
|
43
43
|
<div class="flex items-center justify-center h-full text-foreground-tertiary">
|