Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
f1362318
Unverified
Commit
f1362318
authored
Aug 24, 2023
by
crazywoola
Committed by
GitHub
Aug 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix style in app share (#995)
parent
ef61e148
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
layout.tsx
web/app/(shareLayout)/layout.tsx
+5
-7
index.tsx
web/app/components/share/chat/index.tsx
+3
-3
index.tsx
web/app/components/share/chat/sidebar/index.tsx
+1
-1
index.tsx
web/app/components/share/chatbot/index.tsx
+1
-1
No files found.
web/app/(shareLayout)/layout.tsx
View file @
f1362318
import
React
from
"react"
;
import
React
from
'react'
import
type
{
FC
}
from
'react'
import
type
{
FC
}
from
'react'
import
GA
,
{
GaType
}
from
'@/app/components/base/ga'
import
GA
,
{
GaType
}
from
'@/app/components/base/ga'
...
@@ -6,13 +6,11 @@ const Layout: FC<{
...
@@ -6,13 +6,11 @@ const Layout: FC<{
children
:
React
.
ReactNode
children
:
React
.
ReactNode
}
>
=
({
children
})
=>
{
}
>
=
({
children
})
=>
{
return
(
return
(
<
div
className=
"overflow-x-auto"
>
<
div
className=
"min-w-[300px]"
>
<
div
className=
"w-screen h-screen min-w-[300px]"
>
<
GA
gaType=
{
GaType
.
webapp
}
/>
<
GA
gaType=
{
GaType
.
webapp
}
/>
{
children
}
{
children
}
</
div
>
</
div
>
</
div
>
)
)
}
}
export
default
Layout
export
default
Layout
\ No newline at end of file
web/app/components/share/chat/index.tsx
View file @
f1362318
...
@@ -574,7 +574,7 @@ const Main: FC<IMainProps> = ({
...
@@ -574,7 +574,7 @@ const Main: FC<IMainProps> = ({
return
<
Loading
type=
'app'
/>
return
<
Loading
type=
'app'
/>
return
(
return
(
<
div
className=
'bg-gray-100'
>
<
div
className=
'bg-gray-100
flex w-full h-full
'
>
{
!
isInstalledApp
&&
(
{
!
isInstalledApp
&&
(
<
Header
<
Header
title=
{
siteInfo
.
title
}
title=
{
siteInfo
.
title
}
...
@@ -588,7 +588,7 @@ const Main: FC<IMainProps> = ({
...
@@ -588,7 +588,7 @@ const Main: FC<IMainProps> = ({
<
div
<
div
className=
{
cn
(
className=
{
cn
(
'flex rounded-t-2xl bg-white overflow-hidden'
,
'flex rounded-t-2xl bg-white overflow-hidden
h-full w-full
'
,
isInstalledApp
&&
'rounded-b-2xl'
,
isInstalledApp
&&
'rounded-b-2xl'
,
)
}
)
}
style=
{
isInstalledApp
style=
{
isInstalledApp
...
@@ -611,7 +611,7 @@ const Main: FC<IMainProps> = ({
...
@@ -611,7 +611,7 @@ const Main: FC<IMainProps> = ({
)
}
)
}
{
/* main */
}
{
/* main */
}
<
div
className=
{
cn
(
<
div
className=
{
cn
(
isInstalledApp
?
s
.
installedApp
:
'
h-[calc(100vh_-_3rem)]
'
,
isInstalledApp
?
s
.
installedApp
:
''
,
'flex-grow flex flex-col overflow-y-auto'
,
'flex-grow flex flex-col overflow-y-auto'
,
)
)
}
>
}
>
...
...
web/app/components/share/chat/sidebar/index.tsx
View file @
f1362318
...
@@ -85,7 +85,7 @@ const Sidebar: FC<ISidebarProps> = ({
...
@@ -85,7 +85,7 @@ const Sidebar: FC<ISidebarProps> = ({
<
div
<
div
className=
{
className=
{
cn
(
cn
(
(
isInstalledApp
||
isUniversalChat
)
?
'tablet:h-[calc(100vh_-_74px)]'
:
'
tablet:h-[calc(100vh_-_3rem)]
'
,
(
isInstalledApp
||
isUniversalChat
)
?
'tablet:h-[calc(100vh_-_74px)]'
:
''
,
'shrink-0 flex flex-col bg-white pc:w-[244px] tablet:w-[192px] mobile:w-[240px] border-r border-gray-200 mobile:h-screen'
,
'shrink-0 flex flex-col bg-white pc:w-[244px] tablet:w-[192px] mobile:w-[240px] border-r border-gray-200 mobile:h-screen'
,
)
)
}
}
...
...
web/app/components/share/chatbot/index.tsx
View file @
f1362318
...
@@ -510,7 +510,7 @@ const Main: FC<IMainProps> = ({
...
@@ -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
:
'
h-[calc(100vh_-_3rem)]
'
,
isInstalledApp
?
s
.
installedApp
:
''
,
'flex-grow flex flex-col overflow-y-auto'
,
'flex-grow flex flex-col overflow-y-auto'
,
)
)
}
>
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment