@@ -535,33 +535,35 @@ function HerbieUIInner() {
535535
536536 ] ;
537537
538+ function myHeader ( ) {
539+ return (
540+ < div className = "header" style = { { backgroundColor : "var(--foreground-color)" , color : "var(--background-color)" , paddingLeft : "10px" , paddingRight : "10px" , alignItems : 'center' } } >
541+ { /* removed header-top */ }
542+ < div className = "app-name" >
543+ < div className = "app-icon" >
544+ < img src = "https://raw.githubusercontent.com/herbie-fp/odyssey/main/images/odyssey-icon.png" style = { { width : '20px' , marginRight : '5px' } } alt = "Odyssey Icon" > </ img >
545+ </ div >
546+ Odyssey
547+ </ div >
548+ < SpecComponent { ...{ showOverlay, setShowOverlay } } />
549+ < ServerStatusComponent />
550+ </ div >
551+ )
552+ }
553+
538554 return (
539555 < div >
540556 { showOverlay && // HACK to show the spec config component. Not a true overlay now, needs to be refactored.
541557 < div className = "overlay" style = { { display : "flex" , flexDirection : 'column' } } >
542- < div className = "header" >
543- { /* removed header-top */ }
544- < div className = "app-name" >
545- < div className = "app-icon" >
546- < img src = "https://raw.githubusercontent.com/herbie-fp/odyssey/main/images/odyssey-icon.png" style = { { width : '20px' , marginRight : '5px' , marginLeft : '10px' } } alt = "Odyssey Icon" > </ img >
547- </ div >
548- Odyssey</ div >
549- < SpecComponent { ...{ showOverlay, setShowOverlay} } />
550- < ServerStatusComponent />
551- </ div >
558+ { myHeader ( ) }
552559 < div className = "overlay-content" style = { { display : 'flex' , flexDirection : 'column' , alignItems : 'flex-start' , margin : 'auto' , padding : '10px' , width : '750px' , gap : '7.5px' , fontSize : '18.4px' } } >
553560 < SpecConfigComponent />
554561 </ div >
555562 </ div >
556563 }
557564 { ! showOverlay &&
558565 < div className = "grid-container" >
559- < div className = "header" >
560- { /* removed header-top */ }
561- < div className = "app-name" > Odyssey</ div >
562- < SpecComponent { ...{ showOverlay, setShowOverlay } } />
563- < ServerStatusComponent />
564- </ div >
566+ { myHeader ( ) }
565567
566568 < ExpressionTable />
567569 < div className = "visualizations" >
0 commit comments