mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 03:59:01 +08:00
fix: loading and calc rem (#1006)
This commit is contained in:
parent
c1602aafc7
commit
70e24b7594
@ -570,8 +570,11 @@ const Main: FC<IMainProps> = ({
|
||||
if (appUnavailable)
|
||||
return <AppUnavailable isUnknwonReason={isUnknwonReason} />
|
||||
|
||||
if (!appId || !siteInfo || !promptConfig)
|
||||
return <Loading type='app' />
|
||||
if (!appId || !siteInfo || !promptConfig) {
|
||||
return <div className='flex h-screen w-full'>
|
||||
<Loading type='app' />
|
||||
</div>
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='bg-gray-100'>
|
||||
@ -611,7 +614,7 @@ const Main: FC<IMainProps> = ({
|
||||
)}
|
||||
{/* main */}
|
||||
<div className={cn(
|
||||
isInstalledApp ? s.installedApp : 'h-screen',
|
||||
isInstalledApp ? s.installedApp : 'h-[calc(100vh_-_3rem)] tablet:h-screen',
|
||||
'flex-grow flex flex-col overflow-y-auto',
|
||||
)
|
||||
}>
|
||||
|
@ -494,8 +494,11 @@ const Main: FC<IMainProps> = ({
|
||||
if (appUnavailable)
|
||||
return <AppUnavailable isUnknwonReason={isUnknwonReason} />
|
||||
|
||||
if (!appId || !siteInfo || !promptConfig)
|
||||
return <Loading type='app' />
|
||||
if (!appId || !siteInfo || !promptConfig) {
|
||||
return <div className='flex h-screen w-full'>
|
||||
<Loading type='app' />
|
||||
</div>
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user