Skip to content

Commit 582a1b1

Browse files
bug fix
1 parent b66f899 commit 582a1b1

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

chat-ui-quince/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ <h2 class="sidebar-title">Your assets</h2>
122122

123123
<button id="voice-btn">
124124
<svg fill="#000000" width="32px" height="32px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12,15a4,4,0,0,0,4-4V5A4,4,0,0,0,8,5v6A4,4,0,0,0,12,15ZM10,5a2,2,0,0,1,4,0v6a2,2,0,0,1-4,0Zm10,6a1,1,0,0,0-2,0A6,6,0,0,1,6,11a1,1,0,0,0-2,0,8,8,0,0,0,7,7.93V21H9a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2H13V18.93A8,8,0,0,0,20,11Z" stroke="currentColor"/></svg>
125-
<div id="voice-btn-text"></div>
126125
<div id="voice-spinner"></div>
127126
</button>
128127

chat-ui-quince/src/code.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const sendBtn = document.getElementById('send-btn');
249249
const readOutLoudBtn = document.querySelector('.read-out-loud-btn');
250250

251251

252-
const voiceSpinner = document.getElementById("voiceSpinner");
252+
253253

254254

255255
let isReadOutLoudEnabled = false;
@@ -350,6 +350,7 @@ readOutLoudBtn.addEventListener('click', function () {
350350
document.addEventListener("DOMContentLoaded", () => {
351351
const messageInput = document.getElementById("message-input");
352352
const voiceBtn = document.getElementById('voice-btn');
353+
const voiceSpinner = document.getElementById("voiceSpinner");
353354

354355
// Check if SpeechRecognition is available
355356
const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;

chat-ui-quince/src/style.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ body {
175175

176176
#read-out-loud-btn-enabled {
177177
display: none;
178+
align-items: center;
179+
justify-content: center;
180+
}
181+
182+
#read-out-loud-btn-disabled {
183+
display: flex;
184+
align-items: center;
185+
justify-content: center;
178186
}
179187

180188
#read-out-loud-btn-disabled svg {
@@ -186,11 +194,7 @@ body {
186194
height: 70%;
187195
}
188196

189-
#read-out-loud-btn-enabled, #read-out-loud-btn-disabled {
190-
display: flex;
191-
align-items: center;
192-
justify-content: center;
193-
}
197+
194198

195199

196200
.disclaimer {

0 commit comments

Comments
 (0)