@@ -537,39 +537,39 @@ class App extends Component {
537537 let playlistDialog = null
538538 if ( this . state . showCurrentPlaylist ) {
539539 playlistDialog = (
540- < div className = "row" ref = { this . playlistDialogRef } >
541- < div className = "col-lg-8" >
540+ < >
541+ < div className = "row mx-n2" ref = { this . playlistDialogRef } key = 'a02' >
542+ < div className = "py-1 col-8" >
543+ < h5 className = "" > Current Playlist</ h5 >
544+ </ div >
545+ </ div >
546+ < div className = "row" >
547+ < div className = "col-12" >
542548 < div className = "card" >
543549 < div className = "card-body" >
544- < h5 className = "card-title" > Current Playlist</ h5 >
545- < div className = "row no-gutters align-items-center" >
546- < div className = "col-md-7 p-0" >
550+ < div className = "border border-secondary row rows-cols-2" >
551+ < div className = "col-8 p-1 mr-auto" >
547552 < p > Pattern</ p >
548553 </ div >
549- < div className = "col-md -1 align-items-center row py-0 pr-0 text-left " >
550- < p > Duration(seconds) </ p >
554+ < div className = "col-3 p -1 col-auto " >
555+ < p > Duration</ p >
551556 </ div >
552557 </ div >
553- { ( this . state . playlist ) . map ( ( pattern , index ) =>
554- < div className = "row no-gutters list-group-item py-0 pr-0" key = { index } >
555- < div className = "row align-items-center" >
556- < div className = "col-md-6 p-0" >
557- < div className = "p-2 m-auto" >
558- { pattern . name }
559- </ div >
560- </ div >
561- < div className = "col-md-1 py-0 pr-0 row no-gutters text-left" >
562- < div className = "p-2 m-auto" >
563- { pattern . duration }
564- </ div >
565- </ div >
566- </ div >
558+ { Array . isArray ( this . state . playlist ) && ( this . state . playlist ) . map ( ( pattern , index ) =>
559+ < div className = "border border-secondary row rows-cols-2" key = { index } >
560+ < div className = "col-8 p-1 mr-auto" >
561+ { pattern . name }
567562 </ div >
563+ < div className = "col-3 p-1 col-auto" >
564+ { pattern . duration }
565+ </ div >
566+ </ div >
568567 ) }
569568 </ div >
570569 </ div >
571570 </ div >
572571 </ div >
572+ </ >
573573 )
574574 }
575575
@@ -589,35 +589,40 @@ class App extends Component {
589589 < main role = "main" >
590590 < hr />
591591
592- < div className = "row mx-xl-n2 mx-lg-n3 mx-md-n3 mx-n2 " >
592+ < div className = "row mx-xl-n2 mx-lg-n3 mx-md-n3 mx-n3 " >
593593 < div className = "py-1 col-xl-10 px-xl-2 col-lg-9 px-lg-3 col-md-8 px-md-3 col-6 px-1" >
594- < div className = "row no-gutters" >
595- < h3 > Controllers
594+ < div className = "row px-xl-1 px-lg-1 px-md-1 px-3" >
595+ < div className = "col-xl-2 px-xl-1 col-lg-2 px-lg-1 col-md-4 col-10 px-2" >
596+ < h3 > Controllers</ h3 >
597+ </ div >
598+ < div className = "col-xl-2 px-xl-2 col-lg-1 px-lg-5 col-md-2 col-2 px-2" >
596599 < button className = "btn btn-primary " onClick = { this . handleReload } style = { { marginLeft :"6px" } } > ↻</ button >
597- </ h3 >
600+ </ div >
598601 </ div >
599602 </ div >
600603 < div className = "py-1 col-xl-1 px-xl-1 col-lg-3 px-lg-5 col-md-4 px-md-5 col-2 px-1" >
601- < div className = "navbrightness no-learning-ui row no-gutters pull-right" >
602- < label >
603- < span role = "img" aria-label = "light bulb emoji for pixelblaze brightness" > 💡</ span >
604- < input
605- id = "brightness"
606- type = "range"
607- className = "form-control"
608- onChange = { async ( e ) => {
609- await this . changeBrightness ( e )
610- } }
611- min = "0"
612- max = "1"
613- step = ".005"
614- title = { `Brightness ${ Math . round ( this . state . brightness * 100 ) } %` }
615- value = { ( this . state . brightness !== null ) && this . state . brightness }
616- />
617- </ label >
618- </ div >
604+ < div className = "navbrightness no-learning-ui row no-gutters pull-right" >
605+ < label >
606+ < span role = "img" aria-label = "light bulb emoji for pixelblaze brightness" > 💡</ span >
607+ < input
608+ id = "brightness"
609+ type = "range"
610+ className = "form-control"
611+ onChange = { async ( e ) => {
612+ await this . changeBrightness ( e )
613+ } }
614+ min = "0"
615+ max = "1"
616+ step = ".005"
617+ title = { `Brightness ${ Math . round ( this . state . brightness * 100 ) } %` }
618+ value = { ( this . state . brightness !== null ) && this . state . brightness }
619+ />
620+ </ label >
621+ </ div >
619622 </ div >
620- < div className = "col-lg-12" >
623+ </ div >
624+ < div className = "row mx-xl-n2 mx-lg-n3 mx-md-n3 mx-n3" >
625+ < div className = "col-xl-12 px-xl-2 col-lg-12" >
621626 < ul className = "list-group" id = "list" >
622627 { this . state . discoveries . map ( d => {
623628 const dName = d . name
@@ -640,31 +645,42 @@ class App extends Component {
640645
641646 { cloneDialog }
642647 { playlistDialog }
643- < div className = "row mx-xl-n4 mx-n4" >
644- < div className = "py-1 col-xl-7 px-xl-4 col-3 px-4" >
645- < h3 >
646- Patterns
647- </ h3 >
648- </ div >
649- < div className = "py-2 col-xl-5 px-xl-5 col-12 px-4" >
650- < button
651- className = "btn btn-secondary text-left playlist btn-playlist-bulk"
652- disabled = { this . state . deactivateEnableAllButton }
653- onClick = { this . enableAllPatterns } >
654- Enable All
655- </ button >
656- < button
657- className = "btn btn-secondary text-left playlist btn-playlist-bulk"
658- disabled = { this . state . deactivateDisableAllButton }
659- onClick = { this . disableAllPatterns } >
660- Disable All
661- </ button >
662- < button
663- className = "btn btn-secondary text-left btn-playlist-bulk"
664- onClick = { ( e ) => this . openPlaylistDialog ( e ) } >
665- View Current Playlist
666- </ button >
648+ < div className = "row mx-xl-n4 mx-lg-n4 mx-md-n4 mx-n4" >
649+ < div className = "py-1 col-xl-12 px-xl-4 col-lg-12 px-lg-4 col-md-12 col-12 px-4" >
650+ < div className = "row px-xl-2 pr-lg-2 px-md-2 px-2" >
651+ < div className = "col-xl-1 px-xl-1 mr-xl-auto col-lg-1 px-lg-1 mr-lg-auto col-md-1 px-md-1 mr-md-auto col-12 px-1" >
652+ < h3 >
653+ Patterns
654+ </ h3 >
655+ </ div >
656+ < div className = "py-2 col-xl-auto px-xl-1 col-lg-auto px-lg-1 col-md-auto px-md-1 col-auto px-1" >
657+ < button
658+ className = "btn btn-secondary text-left playlist btn-playlist-bulk"
659+ disabled = { this . state . deactivateEnableAllButton }
660+ onClick = { this . enableAllPatterns } >
661+ Enable All
662+ </ button >
663+ </ div >
664+ < div className = "py-2 col-xl-auto px-xl-1 col-lg-auto px-lg-1 col-md-auto px-md-1 col-auto px-1" >
665+ < button
666+ className = "btn btn-secondary text-left playlist btn-playlist-bulk"
667+ disabled = { this . state . deactivateDisableAllButton }
668+ onClick = { this . disableAllPatterns } >
669+ Disable All
670+ </ button >
671+ </ div >
672+ < div className = "py-2 col-xl-auto px-xl-1 col-lg-auto px-lg-1 col-md-auto px-md-1 col-auto px-1" >
673+ < button
674+ className = "btn btn-secondary text-left btn-playlist-bulk"
675+ onClick = { ( e ) => this . openPlaylistDialog ( e ) } >
676+ View Current Playlist
677+ </ button >
678+ </ div >
679+ </ div >
667680 </ div >
681+ </ div >
682+ < div className = "row mx-xl-n4 mx-n4" >
683+
668684 </ div >
669685 < div className = "list-group" >
670686 { ( this . state . isProcessing ) &&
0 commit comments