Skip to content

Commit 8c0af91

Browse files
More css edits
1 parent 367b850 commit 8c0af91

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

chat-ui-quince/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2 class="sidebar-title">Your assets</h2>
8484
<div id="voice-btn-text"></div>
8585
</button>
8686

87-
<button id="read-out-loud-btn"><img src="speaker-disabled.png" alt="Read Out Loud" id="speaker-icon"></button>
87+
<!-- <button id="read-out-loud-btn"><img src="speaker-disabled.png" alt="Read Out Loud" id="speaker-icon"></button> -->
8888

8989
<div class="read-out-loud-btn">
9090
<div id="read-out-loud-btn-enabled">

chat-ui-quince/src/code.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,17 @@ function toggleReadOutLoud() {
216216
isReadOutLoudEnabled = !isReadOutLoudEnabled;
217217

218218
const readOutLoudBtn = document.getElementById('read-out-loud-btn');
219+
const readOutLoudBtnEnabled = document.getElementById('read-out-loud-btn-enabled')
220+
const readOutLoudBtnDisabled = document.getElementById('read-out-loud-btn-disabled')
219221
// Update the button icon based on the read out loud status
220222
if (isReadOutLoudEnabled) {
221-
speakerIcon.src = "speaker-enabled.png"; // Speaker image
223+
// speakerIcon.src = "speaker-enabled.png"; // Speaker image
224+
readOutLoudBtnEnabled.display = "flex";
225+
readOutLoudBtnDisabled.display = "none";
222226
} else {
223-
speakerIcon.src = "speaker-disabled.png"; // Crossed-out speaker image
227+
//speakerIcon.src = "speaker-disabled.png"; // Crossed-out speaker image
228+
readOutLoudBtnEnabled.display = "none";
229+
readOutLoudBtnDisabled.display = "flex";
224230
}
225231

226232
// Optionally, stop any current speech when toggling

chat-ui-quince/src/style.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,22 @@ body {
152152
font-size: 16px;
153153
}
154154

155-
156-
157155
#send-btn:hover {
158156
background: #e0e0e0;
159157
}
160158

159+
#voice-btn {
160+
position: absolute;
161+
left: 15px;
162+
bottom: 20px;
163+
}
164+
165+
.read-out-loud-btn {
166+
position: absolute;
167+
left: 40px;
168+
bottom: 20px;
169+
}
170+
161171
#speaker-icon {
162172
width: 20px; /* Match width of send button */
163173
height: 20px;
@@ -207,7 +217,8 @@ body {
207217
}
208218
.sidebar {
209219
margin: 20px 20px 20px 20px; /* Equal margins all around */
210-
height: calc(100% - 80px); /* Full height minus top/bottom margins */
220+
/*height: calc(100% - 80px); /* Full height minus top/bottom margins */
221+
height: calc(100vh - 136px);
211222
max-height: none; /* Remove cap */
212223
}
213224
.chat-container {

0 commit comments

Comments
 (0)