@alliance-droid/chat-widget 0.1.2 → 0.1.3

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.
@@ -40,6 +40,11 @@
40
40
  return position === 'bottom-left' ? 'left-4' : 'right-4';
41
41
  });
42
42
 
43
+ // Flex alignment based on position
44
+ const alignmentClass = $derived(() => {
45
+ return position === 'bottom-left' ? 'items-start' : 'items-end';
46
+ });
47
+
43
48
  // Theme class
44
49
  const themeClass = $derived(() => {
45
50
  if (theme === 'auto') return '';
@@ -98,10 +103,10 @@
98
103
  });
99
104
  </script>
100
105
 
101
- <div class="fixed bottom-4 {positionClasses()} z-50 {themeClass()} {className}">
106
+ <div class="fixed bottom-4 {positionClasses()} z-50 flex flex-col {alignmentClass()} {themeClass()} {className}">
102
107
  {#if isOpen}
103
108
  <div
104
- class="w-[380px] h-[600px] max-h-[80vh] mb-4 animate-in fade-in slide-in-from-bottom-4 duration-200"
109
+ class="w-[380px] max-w-[calc(100vw-2rem)] h-[600px] max-h-[80vh] mb-4 overflow-hidden animate-in fade-in slide-in-from-bottom-4 duration-200"
105
110
  >
106
111
  <ChatPanel
107
112
  messages={$messages}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alliance-droid/chat-widget",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Svelte chat widget with AI support and human escalation",
5
5
  "type": "module",
6
6
  "scripts": {