feat: enhance WindowService with improved DevTools setup and update Sidebar layout with logo integration

This commit is contained in:
duanshuwen
2026-04-17 21:59:50 +08:00
parent e9f3a29886
commit c93f7ae2c8
3 changed files with 44 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ export default function MainLayout() {
const platform = (window as any).api?.platform ?? '';
return (
<div className="bg-white dark:!bg-[#0f0f10] h-screen flex flex-col">
<div className=" dark:!bg-[#0f0f10] h-screen flex flex-col">
<TitleBar />
<main

View File

@@ -3,6 +3,8 @@ import { Book, Clock, Code, Cpu, House, Puzzle, Settings } from 'lucide-react';
import { useI18n } from '../../i18n';
import { NAV_ITEMS, normalizeWorkspacePath } from '../../router/routes';
import blueLogo from '../../assets/images/login/blue_logo.png';
const MENU_MARKS: Record<string, typeof House> = {
'/home': House,
'/knowledge': Book,
@@ -21,7 +23,7 @@ export default function Sidebar() {
return (
<aside className="box-border flex h-full w-[80px] flex-col items-center pb-[8px]">
<div className="flex w-full flex-col gap-[16px]">
<div className="flex flex-1 w-full flex-col gap-[16px]">
{NAV_ITEMS.map((item) => {
const active = currentId === item.path;
const isSetting = item.path === '/setting';
@@ -64,7 +66,7 @@ export default function Sidebar() {
</div>
<div className="mt-auto flex h-[48px] w-[48px] items-center justify-center overflow-hidden rounded-full border border-black/10 bg-white dark:border-[#2a2a2d] dark:bg-[#222225]">
<span className="text-[16px] font-bold text-[#2B7FFF]">Z</span>
<img className="h-full w-full object-cover" src={blueLogo} alt="Logo" />
</div>
</aside>
);