mehdi-akbari-ai-assistant-free 0.9.2 → 0.9.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.
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/styles.css +9 -2
- 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.3";
|
|
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.3";
|
|
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,9 @@
|
|
|
21
21
|
|
|
22
22
|
.mra-container--fullscreen .mra-chat-window-container {
|
|
23
23
|
position: static;
|
|
24
|
+
/* (اصلاح کلیدی) عرض و ارتفاع را 100% میکنیم تا کل فضا را پر کند */
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
.mra-container--fullscreen .mra-chat-window {
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
display: none;
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
|
|
37
41
|
/* Floating Action Button */
|
|
38
42
|
.mra-fab {
|
|
39
43
|
width: 64px;
|
|
@@ -61,6 +65,9 @@
|
|
|
61
65
|
transform: translateY(20px);
|
|
62
66
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
63
67
|
pointer-events: none;
|
|
68
|
+
/* (اصلاح کلیدی) عرض را به این کانتینر منتقل میکنیم */
|
|
69
|
+
width: 32rem; /* معادل max-w-lg */
|
|
70
|
+
max-width: calc(100vw - 4rem); /* جلوگیری از سرریز شدن در صفحات کوچک */
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
.mra-chat-window-container--open {
|
|
@@ -76,7 +83,7 @@
|
|
|
76
83
|
flex-direction: column;
|
|
77
84
|
height: 500px;
|
|
78
85
|
width: 100%;
|
|
79
|
-
max-width
|
|
86
|
+
/* (اصلاح کلیدی) max-width را از اینجا حذف میکنیم چون توسط والد کنترل میشود */
|
|
80
87
|
border-radius: 0.75rem;
|
|
81
88
|
border: 1px solid var(--ai-border, #e5e7eb);
|
|
82
89
|
background-color: var(--ai-bg, #ffffff);
|
|
@@ -93,7 +100,7 @@
|
|
|
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);
|