Skip to content

Commit 79d0036

Browse files
committed
Header #1f1c18, text white
1 parent d2f0ddb commit 79d0036

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

src/herbie/HerbieUI.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ input[type="text"]:focus, select:focus {
155155
display:flex;
156156
grid-area: header; /*Place the header in the "header" grid area */
157157
justify-content: space-between; /* Align the components at the start and end of the header */
158-
border-bottom: 4px solid #5e5e5f1a;
159158
.app-name {
160159
display: flex;
161160
align-items: center;

src/herbie/HerbieUI.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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">

src/herbie/ServerStatus.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
justify-content: space-between;
1717
vertical-align: bottom;
1818
cursor: pointer;
19-
background-color: var(--background-color);
2019
font-size: 12px;
2120
align-items: center;
2221
width: 100px;

src/herbie/SpecComponent.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
.spec-text {
6464
font-family: 'Ruda', serif;
6565
font-size: 1em;
66-
padding-top:4px;
6766
/* overflow should be ... */
6867
white-space: nowrap;
6968
overflow: hidden;

0 commit comments

Comments
 (0)