@nine-lab/nine-mu 0.1.159 → 0.1.160
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/css/nine-mu.css +6 -0
- package/dist/nine-mu.js +7 -8
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/public/css/nine-mu.css +6 -0
- package/src/components/NineChat.js +5 -3
package/package.json
CHANGED
package/public/css/nine-mu.css
CHANGED
|
@@ -207,6 +207,12 @@
|
|
|
207
207
|
textarea:focus {
|
|
208
208
|
border: 1px solid green;
|
|
209
209
|
}
|
|
210
|
+
textarea:disabled {
|
|
211
|
+
background-color: #f5f5f5; /* 연한 회색 배경 */
|
|
212
|
+
color: #999; /* 글자색도 연하게 */
|
|
213
|
+
cursor: not-allowed; /* 마우스 커서를 금지 모양으로 변경 */
|
|
214
|
+
border-color: #ddd; /* 테두리 색상도 힘을 뺌 */
|
|
215
|
+
}
|
|
210
216
|
}
|
|
211
217
|
}
|
|
212
218
|
}
|
|
@@ -72,7 +72,7 @@ export class NineChat extends HTMLElement {
|
|
|
72
72
|
const $textarea = this.shadowRoot.querySelector('#q');
|
|
73
73
|
|
|
74
74
|
// 중복 전송 방지 플래그
|
|
75
|
-
this.isProcessing = false;
|
|
75
|
+
//this.isProcessing = false;
|
|
76
76
|
|
|
77
77
|
$textarea.addEventListener('keypress', async (e) => {
|
|
78
78
|
if (e.key === 'Enter' && !e.shiftKey) {
|
|
@@ -81,7 +81,8 @@ export class NineChat extends HTMLElement {
|
|
|
81
81
|
const userInput = $textarea.value.trim();
|
|
82
82
|
if (!userInput || this.isProcessing) return;
|
|
83
83
|
|
|
84
|
-
this.isProcessing = true;
|
|
84
|
+
//this.isProcessing = true;
|
|
85
|
+
$textarea.disabled = true;
|
|
85
86
|
|
|
86
87
|
// 1. 즉시 UI 반영
|
|
87
88
|
this.#$nineChatMessage.add("me", userInput);
|
|
@@ -102,7 +103,8 @@ export class NineChat extends HTMLElement {
|
|
|
102
103
|
nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
|
|
103
104
|
}
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
$textarea.disabled = false;
|
|
107
|
+
//this.isProcessing = false;
|
|
106
108
|
}
|
|
107
109
|
});
|
|
108
110
|
}
|