try adding the wave logo to header

This commit is contained in:
sawka 2024-08-06 16:41:00 -07:00
parent 21684b0995
commit 8508a40261
5 changed files with 24 additions and 4 deletions

View File

@ -29,7 +29,6 @@
} }
.dev-label { .dev-label {
width: 26x;
height: 100%; height: 100%;
font-size: 26px; font-size: 26px;
user-select: none; user-select: none;
@ -40,6 +39,21 @@
color: var(--accent-color); color: var(--accent-color);
} }
.prod-label {
font-size: 26px;
width: 1.25em;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
img {
height: 26px;
width: 26px;
margin-top: 4px;
}
}
.add-tab-btn { .add-tab-btn {
width: 22px; width: 22px;
height: 100%; height: 100%;

View File

@ -485,13 +485,19 @@ const TabBar = React.memo(({ workspace }: TabBarProps) => {
}; };
const tabsWrapperWidth = tabIds.length * tabWidthRef.current; const tabsWrapperWidth = tabIds.length * tabWidthRef.current;
let devLabel: React.ReactNode = null; let waveLabel: React.ReactNode = null;
if (isDev()) { if (isDev()) {
devLabel = ( waveLabel = (
<div className="dev-label"> <div className="dev-label">
<i className="fa fa-brands fa-dev fa-fw" /> <i className="fa fa-brands fa-dev fa-fw" />
</div> </div>
); );
} else {
waveLabel = (
<div className="prod-label">
<img src="/public/logos/wave-logo.png" />
</div>
);
} }
function onUpdateAvailableClick() { function onUpdateAvailableClick() {
@ -510,7 +516,7 @@ const TabBar = React.memo(({ workspace }: TabBarProps) => {
return ( return (
<div ref={tabbarWrapperRef} className="tab-bar-wrapper"> <div ref={tabbarWrapperRef} className="tab-bar-wrapper">
<WindowDrag ref={draggerLeftRef} className="left" /> <WindowDrag ref={draggerLeftRef} className="left" />
{devLabel} {waveLabel}
<div className="tab-bar" ref={tabBarRef} data-overlayscrollbars-initialize> <div className="tab-bar" ref={tabBarRef} data-overlayscrollbars-initialize>
<div className="tabs-wrapper" ref={tabsWrapperRef} style={{ width: `${tabsWrapperWidth}px` }}> <div className="tabs-wrapper" ref={tabsWrapperRef} style={{ width: `${tabsWrapperWidth}px` }}>
{tabIds.map((tabId, index) => { {tabIds.map((tabId, index) => {

BIN
public/logos/wave-dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
public/logos/wave-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB