Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: loading and calc rem (#1006)

crazywoola70e24b759484
diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx
index 31bc3776686..23fc19936d3 100644
--- a/web/app/components/share/chat/index.tsx
+++ b/web/app/components/share/chat/index.tsx
@@ -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',
)
}>
diff --git a/web/app/components/share/chatbot/index.tsx b/web/app/components/share/chatbot/index.tsx
index 5602294c42c..a9c77402eee 100644
--- a/web/app/components/share/chatbot/index.tsx
+++ b/web/app/components/share/chatbot/index.tsx
@@ -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>