File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed
Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff 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 ">
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments