fix: styles (#1005)

This commit is contained in:
crazywoola 2023-08-24 22:37:46 +08:00 committed by GitHub
parent b1fd1b3ab3
commit a3fec11438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View File

@ -6,10 +6,12 @@ const Layout: FC<{
children: React.ReactNode children: React.ReactNode
}> = ({ children }) => { }> = ({ children }) => {
return ( return (
<div className=''>
<div className="min-w-[300px]"> <div className="min-w-[300px]">
<GA gaType={GaType.webapp} /> <GA gaType={GaType.webapp} />
{children} {children}
</div> </div>
</div>
) )
} }

View File

@ -574,7 +574,7 @@ const Main: FC<IMainProps> = ({
return <Loading type='app' /> return <Loading type='app' />
return ( return (
<div className='bg-gray-100 flex w-full h-full'> <div className='bg-gray-100'>
{!isInstalledApp && ( {!isInstalledApp && (
<Header <Header
title={siteInfo.title} title={siteInfo.title}
@ -611,7 +611,7 @@ const Main: FC<IMainProps> = ({
)} )}
{/* main */} {/* main */}
<div className={cn( <div className={cn(
isInstalledApp ? s.installedApp : '', isInstalledApp ? s.installedApp : 'h-screen',
'flex-grow flex flex-col overflow-y-auto', 'flex-grow flex flex-col overflow-y-auto',
) )
}> }>

View File

@ -510,7 +510,7 @@ const Main: FC<IMainProps> = ({
<div className={'flex bg-white overflow-hidden'}> <div className={'flex bg-white overflow-hidden'}>
<div className={cn( <div className={cn(
isInstalledApp ? s.installedApp : '', isInstalledApp ? s.installedApp : 'h-[calc(100vh_-_3rem)]',
'flex-grow flex flex-col overflow-y-auto', 'flex-grow flex flex-col overflow-y-auto',
) )
}> }>