perf for size

This commit is contained in:
2025-05-21 18:21:52 +08:00
parent 1b4bad6d2e
commit 85fd48f403
24 changed files with 84 additions and 26 deletions

View File

@@ -6,7 +6,7 @@ import { useLayoutStore, usePlatformStore } from './store';
import { useShallow } from 'zustand/react/shallow';
import { useEffect, useLayoutEffect, useState } from 'react';
import { LayoutUser } from './LayoutUser';
import PandaPNG from '@/assets/panda.png';
import { PandaPNG } from '@/assets/index.tsx';
import QRCodePNG from '@/assets/qrcode-8x8.jpg';
import { Panel, PanelGroup } from 'react-resizable-panels';
import clsx from 'clsx';
@@ -93,7 +93,7 @@ export const LayoutMain = (props: LayoutMainProps) => {
</IconButton>
<div className='flex grow justify-between pl-4 items-center'>
<div className='flex items-center gap-2'>
<div className='text-xl font-bold'>{props.title}</div>
<div className='text-xl font-bold min-w-[140px]'>{props.title}</div>
<div className='ml-4 flex items-center gap-2 text-sm '>
{quickMenu.map((item, index) => {
const isActive = location.pathname.includes(item.link);