Add a text entry box to the simple-chatbot example

This commit is contained in:
mattie ruth backman
2025-07-11 14:06:17 -07:00
committed by Mattie Ruth
parent fad5713ade
commit 2325edd9ba
3 changed files with 69 additions and 0 deletions

View File

@@ -21,6 +21,11 @@ body {
margin-bottom: 20px;
}
.device-bar {
flex-direction: column;
gap: 10px;
}
.controls,
.device-controls {
display: flex;
@@ -62,6 +67,35 @@ body {
box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); /* Add a subtle focus effect */
}
.text-input-container {
display: flex;
gap: 8px;
margin-left: 10px;
width: 100%;
flex: 1;
}
#text-input {
flex: 1;
padding: 8px 16px;
border: 1px solid #e0e0e0;
border-radius: 4px;
min-width: 200px;
}
#send-text-btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
background-color: #007bff;
color: white;
flex-shrink: 0;
}
#send-text-btn:hover {
background-color: #0056b3;
}
#connect-btn {
background-color: #4caf50;
color: white;