From 6a9d2024147a34d69330681a551254ac2113ef7c Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 23 Jul 2024 17:11:02 +0800 Subject: [PATCH] chore: layout UI upgrade (#6577) --- web/app/(commonLayout)/layout.tsx | 2 +- web/app/components/app-sidebar/app-info.tsx | 2 +- web/app/components/app-sidebar/index.tsx | 8 +++---- web/app/components/app-sidebar/navLink.tsx | 3 +-- web/app/components/base/logo/logo-site.tsx | 11 +++++++++- .../components/header/explore-nav/index.tsx | 4 ++-- .../{HeaderWrapper.tsx => header-wrapper.tsx} | 2 +- web/app/components/header/nav/index.tsx | 8 +++---- .../header/nav/nav-selector/index.tsx | 4 ++-- web/context/app-context.tsx | 20 +++++++++++++++++- web/public/logo/logo-site-dark.png | Bin 0 -> 4270 bytes web/tailwind.config.js | 1 + web/types/app.ts | 5 +++++ 13 files changed, 51 insertions(+), 19 deletions(-) rename web/app/components/header/{HeaderWrapper.tsx => header-wrapper.tsx} (84%) create mode 100644 web/public/logo/logo-site-dark.png diff --git a/web/app/(commonLayout)/layout.tsx b/web/app/(commonLayout)/layout.tsx index ceeb164315..af36d4d961 100644 --- a/web/app/(commonLayout)/layout.tsx +++ b/web/app/(commonLayout)/layout.tsx @@ -3,7 +3,7 @@ import type { ReactNode } from 'react' import SwrInitor from '@/app/components/swr-initor' import { AppContextProvider } from '@/context/app-context' import GA, { GaType } from '@/app/components/base/ga' -import HeaderWrapper from '@/app/components/header/HeaderWrapper' +import HeaderWrapper from '@/app/components/header/header-wrapper' import Header from '@/app/components/header' import { EventEmitterContextProvider } from '@/context/event-emitter' import { ProviderContextProvider } from '@/context/provider-context' diff --git a/web/app/components/app-sidebar/app-info.tsx b/web/app/components/app-sidebar/app-info.tsx index ef37ff3c78..90d3717d2c 100644 --- a/web/app/components/app-sidebar/app-info.tsx +++ b/web/app/components/app-sidebar/app-info.tsx @@ -218,7 +218,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => { {expand && (
-
+
{appDetail.name}
{isCurrentWorkspaceEditor && }
diff --git a/web/app/components/app-sidebar/index.tsx b/web/app/components/app-sidebar/index.tsx index 9a78cd7e6e..5d5d407dc0 100644 --- a/web/app/components/app-sidebar/index.tsx +++ b/web/app/components/app-sidebar/index.tsx @@ -49,7 +49,7 @@ const AppDetailNav = ({ title, desc, icon, icon_background, navigation, extraInf return (
@@ -60,7 +60,7 @@ const AppDetailNav = ({ title, desc, icon, icon_background, navigation, extraInf `} > {iconType === 'app' && ( - + )} {iconType !== 'app' && ( {!expand && ( -
+
)}