mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
try adding the wave logo to header
This commit is contained in:
parent
21684b0995
commit
8508a40261
@ -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%;
|
||||||
|
@ -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
BIN
public/logos/wave-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
public/logos/wave-logo-dark.png
Normal file
BIN
public/logos/wave-logo-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
BIN
public/logos/wave-logo.png
Normal file
BIN
public/logos/wave-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
Loading…
Reference in New Issue
Block a user