mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
opti: 1.adjust page-tree header;
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="52" height="52" rx="10" fill="#3E6FDB"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.2189 11.4392L14.6321 38.7943H20.2472L26.3453 19.8747L32.4461 38.7943H38.0423L28.454 11.4392H24.2189Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 327 B |
@@ -0,0 +1,19 @@
|
||||
export const Logo = ({ color, style, ...props }) => {
|
||||
return (
|
||||
<svg
|
||||
width="52"
|
||||
height="52"
|
||||
viewBox="0 0 52 52"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect width="52" height="52" rx="10" fill="#3E6FDB" />
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M24.2189 11.4392L14.6321 38.7943H20.2472L26.3453 19.8747L32.4461 38.7943H38.0423L28.454 11.4392H24.2189Z"
|
||||
fill="white"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export { Logo } from './Logo';
|
||||
@@ -3,14 +3,13 @@ import {
|
||||
MuiOutlinedInput as OutlinedInput,
|
||||
} from '@toeverything/components/ui';
|
||||
import { PinIcon } from '@toeverything/components/icons';
|
||||
import logo from '../../../assets/images/logo.svg';
|
||||
import {
|
||||
useUserAndSpaces,
|
||||
useShowSpaceSidebar,
|
||||
} from '@toeverything/datasource/state';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import type { CSSProperties } from 'react';
|
||||
import { services } from '@toeverything/datasource/db-service';
|
||||
import { Logo } from './components/logo/Logo';
|
||||
|
||||
const WorkspaceContainer = styled('div')({
|
||||
display: 'flex',
|
||||
@@ -34,10 +33,6 @@ const LogoContainer = styled('div')({
|
||||
minWidth: 24,
|
||||
});
|
||||
|
||||
export const LogoImg = ({ style = {} }: { style?: CSSProperties }) => {
|
||||
return <img style={style} src={logo} alt="AFFiNE Logo" />;
|
||||
};
|
||||
|
||||
const StyledPin = styled('div')({
|
||||
display: 'flex',
|
||||
justifyContent: 'end',
|
||||
@@ -168,7 +163,7 @@ export const WorkspaceName = () => {
|
||||
</StyledPin>
|
||||
<LeftContainer>
|
||||
<LogoContainer>
|
||||
<LogoImg />
|
||||
<Logo color={undefined} style={undefined} />
|
||||
</LogoContainer>
|
||||
|
||||
<StyledWorkspace>
|
||||
|
||||
Reference in New Issue
Block a user