Skip to content

Commit 2b5ee3b

Browse files
committed
UnityWebApp17.0RedoLoad
1 parent a8ce1f9 commit 2b5ee3b

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

ChatInterface.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,11 @@ async function buildMessages(modelName, userMessage) {
964964
this.style.height = newHeight + "px";
965965

966966
// Enable/disable send button
967-
sendButton.disabled = !this.value.trim();
967+
const updateButtonState = () => {
968+
sendButton.disabled = !input.value.trim();
969+
}
970+
input.addEventListener("input", updateButtonState);
971+
updateButtonState(); // Initial state
968972
});
969973

970974
// Send message on button click

git_gui_state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"repo_url": "https://github.com/Unity-Lab-AI/Unity-Lab-AI.github.io.git", "repo_name": "unity.unityailab.com", "feature_branch": "feature/test6"}
1+
{"repo_url": "https://github.com/Unity-Lab-AI/Unity-Lab-AI.github.io.git", "repo_name": "unity.unityailab.com", "feature_branch": "feature/UnityWebApp17.0Redo"}

styles.css

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,22 +256,23 @@ body.dark-mode {
256256
#send-button {
257257
margin: 0.75rem 1rem;
258258
padding: 0.5rem 1rem;
259-
background-color: #6b7280; /* Greyed out color */
259+
background-color: var(--chat-primary);
260260
color: #fff;
261261
border: none;
262262
border-radius: 0.375rem;
263-
cursor: not-allowed;
264-
transition: background-color 0.2s;
265-
}
266-
267-
#send-button:not(:disabled) {
268-
background-color: var(--chat-primary); /* Active color */
269263
cursor: pointer;
270-
}
271-
272-
#send-button:not(:disabled):hover {
273-
background-color: var(--chat-secondary); /* Hover color */
274-
}
264+
transition: background-color 0.2s;
265+
}
266+
267+
#send-button:disabled {
268+
background-color: #6b7280;
269+
cursor: not-allowed;
270+
opacity: 0.5;
271+
}
272+
273+
#send-button:not(:disabled):hover {
274+
background-color: var(--chat-secondary);
275+
}
275276
@keyframes fadeIn {
276277
to {
277278
opacity: 1;

0 commit comments

Comments
 (0)