File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const {
22 flux : { dispatcher } ,
33 solid : { createSignal, onCleanup } ,
4+ ui : { Text, TextTags, TextWeights } ,
45} = shelter ;
56
67function format ( milliseconds ) {
@@ -24,10 +25,9 @@ function Timer() {
2425 onCleanup ( ( ) => clearInterval ( timer ) ) ;
2526
2627 return (
27- < div id = "vcTimer" style = { "font-weight: bold" } >
28+ < Text tag = { TextTags . textXS } weight = { TextWeights . bold } >
2829 { format ( elapsed ( ) ) }
29- < br />
30- </ div >
30+ </ Text >
3131 ) ;
3232}
3333
@@ -36,7 +36,11 @@ function onVoiceJoin(e) {
3636
3737 if ( document . getElementById ( "vcTimer" ) ) return ;
3838
39- document . querySelector ( '[class^="rtcConnectionStatus_"] + a > div' ) . prepend ( < Timer /> ) ;
39+ const container = document . querySelector ( '[class^="labelWrapper_"]' ) ;
40+ container . parentElement . style . height = "unset" ;
41+ container . parentElement . parentElement . parentElement . style . height = "unset" ;
42+ container . parentElement . parentElement . parentElement . parentElement . style . height = "unset" ;
43+ container . insertBefore ( < Timer /> , container . lastChild ) ;
4044}
4145
4246export function onLoad ( ) {
You can’t perform that action at this time.
0 commit comments