perf for size
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user