mehdi-akbari-ai-assistant-free 0.9.2 → 0.9.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.
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/styles.css +9 -6
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -144,7 +144,7 @@ var ChatWindow = ({
|
|
|
144
144
|
}) => {
|
|
145
145
|
const [messages, setMessages] = (0, import_react3.useState)([]);
|
|
146
146
|
const [isLoading, setIsLoading] = (0, import_react3.useState)(false);
|
|
147
|
-
const version = "0.9.
|
|
147
|
+
const version = "0.9.4";
|
|
148
148
|
(0, import_react3.useEffect)(() => {
|
|
149
149
|
if (welcomeMessage && messages.length === 0) {
|
|
150
150
|
setMessages([{ role: "assistant", content: welcomeMessage }]);
|
package/dist/react.mjs
CHANGED
|
@@ -108,7 +108,7 @@ var ChatWindow = ({
|
|
|
108
108
|
}) => {
|
|
109
109
|
const [messages, setMessages] = useState2([]);
|
|
110
110
|
const [isLoading, setIsLoading] = useState2(false);
|
|
111
|
-
const version = "0.9.
|
|
111
|
+
const version = "0.9.4";
|
|
112
112
|
useEffect3(() => {
|
|
113
113
|
if (welcomeMessage && messages.length === 0) {
|
|
114
114
|
setMessages([{ role: "assistant", content: welcomeMessage }]);
|
package/dist/styles.css
CHANGED
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
|
|
22
22
|
.mra-container--fullscreen .mra-chat-window-container {
|
|
23
23
|
position: static;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
/* (اصلاح نهایی) حذف محدودیت عرض در حالت تمامصفحه */
|
|
27
|
+
max-width: none;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
.mra-container--fullscreen .mra-chat-window {
|
|
@@ -34,6 +38,7 @@
|
|
|
34
38
|
display: none;
|
|
35
39
|
}
|
|
36
40
|
|
|
41
|
+
|
|
37
42
|
/* Floating Action Button */
|
|
38
43
|
.mra-fab {
|
|
39
44
|
width: 64px;
|
|
@@ -61,6 +66,8 @@
|
|
|
61
66
|
transform: translateY(20px);
|
|
62
67
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
63
68
|
pointer-events: none;
|
|
69
|
+
width: 32rem;
|
|
70
|
+
max-width: calc(100vw - 4rem);
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
.mra-chat-window-container--open {
|
|
@@ -76,7 +83,6 @@
|
|
|
76
83
|
flex-direction: column;
|
|
77
84
|
height: 500px;
|
|
78
85
|
width: 100%;
|
|
79
|
-
max-width: 32rem; /* Increased default width to max-w-lg */
|
|
80
86
|
border-radius: 0.75rem;
|
|
81
87
|
border: 1px solid var(--ai-border, #e5e7eb);
|
|
82
88
|
background-color: var(--ai-bg, #ffffff);
|
|
@@ -90,10 +96,11 @@
|
|
|
90
96
|
transition: all 0.3s ease-in-out;
|
|
91
97
|
}
|
|
92
98
|
|
|
99
|
+
/* ... بقیه کد بدون تغییر باقی میماند ... */
|
|
93
100
|
.mra-header {
|
|
94
101
|
display: flex;
|
|
95
102
|
align-items: center;
|
|
96
|
-
justify-content: space-between;
|
|
103
|
+
justify-content: space-between;
|
|
97
104
|
gap: 0.5rem;
|
|
98
105
|
padding: 1rem;
|
|
99
106
|
border-bottom: 1px solid var(--ai-border, #e5e7eb);
|
|
@@ -126,7 +133,6 @@
|
|
|
126
133
|
color: #1f2937;
|
|
127
134
|
}
|
|
128
135
|
|
|
129
|
-
/* === MessageList Styles === */
|
|
130
136
|
.mra-message-list {
|
|
131
137
|
flex: 1 1 0%;
|
|
132
138
|
overflow-y: auto;
|
|
@@ -173,7 +179,6 @@
|
|
|
173
179
|
}
|
|
174
180
|
}
|
|
175
181
|
|
|
176
|
-
/* === MessageBubble Styles === */
|
|
177
182
|
.mra-bubble-wrapper {
|
|
178
183
|
display: flex;
|
|
179
184
|
width: 100%;
|
|
@@ -203,7 +208,6 @@
|
|
|
203
208
|
border-bottom-left-radius: 0.125rem;
|
|
204
209
|
}
|
|
205
210
|
|
|
206
|
-
/* === ChatInput Styles === */
|
|
207
211
|
.mra-input-wrapper {
|
|
208
212
|
display: flex;
|
|
209
213
|
gap: 0.5rem;
|
|
@@ -258,7 +262,6 @@
|
|
|
258
262
|
cursor: not-allowed;
|
|
259
263
|
}
|
|
260
264
|
|
|
261
|
-
/* === Footer Styles === */
|
|
262
265
|
.mra-footer {
|
|
263
266
|
padding: 0.5rem 0.75rem;
|
|
264
267
|
border-top: 1px solid var(--ai-border, #e5e7eb);
|