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
972cf3cd
Unverified
Commit
972cf3cd
authored
Dec 27, 2023
by
Joel
Committed by
GitHub
Dec 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: splitting text ui broken (#1848)
parent
da4847c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
index.module.css
web/app/components/datasets/create/step-two/index.module.css
+11
-1
index.tsx
web/app/components/datasets/create/step-two/index.tsx
+1
-1
No files found.
web/app/components/datasets/create/step-two/index.module.css
View file @
972cf3cd
...
@@ -262,6 +262,7 @@
...
@@ -262,6 +262,7 @@
font-size
:
13px
;
font-size
:
13px
;
line-height
:
18px
;
line-height
:
18px
;
}
}
.input
{
.input
{
@apply
inline-flex
h-9
w-full
py-1
px-2
rounded-lg
text-xs
leading-normal;
@apply
inline-flex
h-9
w-full
py-1
px-2
rounded-lg
text-xs
leading-normal;
@apply
bg-gray-100
caret-primary-600
hover
:
bg-gray-100
focus
:
ring-1
focus
:
ring-inset
focus
:
ring-gray-200
focus-visible
:
outline-none
focus
:
bg-white
placeholder
:
text-gray-400
;
@apply
bg-gray-100
caret-primary-600
hover
:
bg-gray-100
focus
:
ring-1
focus
:
ring-inset
focus
:
ring-gray-200
focus-visible
:
outline-none
focus
:
bg-white
placeholder
:
text-gray-400
;
...
@@ -316,9 +317,11 @@
...
@@ -316,9 +317,11 @@
.fileIcon.json
{
.fileIcon.json
{
background-image
:
url(../assets/json.svg)
;
background-image
:
url(../assets/json.svg)
;
}
}
.sourceContent
{
.sourceContent
{
flex
:
1
1
auto
;
flex
:
1
1
auto
;
}
}
.sourceCount
{
.sourceCount
{
@apply
shrink-0
ml-1;
@apply
shrink-0
ml-1;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -326,6 +329,7 @@
...
@@ -326,6 +329,7 @@
line-height
:
18px
;
line-height
:
18px
;
color
:
#667085
;
color
:
#667085
;
}
}
.segmentCount
{
.segmentCount
{
flex
:
1
1
30%
;
flex
:
1
1
30%
;
max-width
:
120px
;
max-width
:
120px
;
...
@@ -382,6 +386,10 @@
...
@@ -382,6 +386,10 @@
.previewWrap
{
.previewWrap
{
flex-shrink
:
0
;
flex-shrink
:
0
;
width
:
524px
;
}
.previewWrap.isMobile
{
max-width
:
524px
;
max-width
:
524px
;
}
}
...
@@ -410,15 +418,17 @@
...
@@ -410,15 +418,17 @@
backdrop-filter
:
blur
(
4px
);
backdrop-filter
:
blur
(
4px
);
animation
:
fix
0.5s
;
animation
:
fix
0.5s
;
}
}
@keyframes
fix
{
@keyframes
fix
{
from
{
from
{
padding-top
:
42px
;
padding-top
:
42px
;
font-size
:
18px
;
font-size
:
18px
;
line-height
:
28px
;
line-height
:
28px
;
}
}
to
{
to
{
padding-top
:
12px
;
padding-top
:
12px
;
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
}
}
}
}
\ No newline at end of file
web/app/components/datasets/create/step-two/index.tsx
View file @
972cf3cd
...
@@ -820,7 +820,7 @@ const StepTwo = ({
...
@@ -820,7 +820,7 @@ const StepTwo = ({
</
div
>
</
div
>
</
div
>
</
div
>
<
FloatRightContainer
isMobile=
{
isMobile
}
isOpen=
{
showPreview
}
onClose=
{
hidePreview
}
footer=
{
null
}
>
<
FloatRightContainer
isMobile=
{
isMobile
}
isOpen=
{
showPreview
}
onClose=
{
hidePreview
}
footer=
{
null
}
>
{
showPreview
&&
<
div
ref=
{
previewScrollRef
}
className=
{
cn
(
s
.
previewWrap
,
'relative h-full overflow-y-scroll border-l border-[#F2F4F7]'
)
}
>
{
showPreview
&&
<
div
ref=
{
previewScrollRef
}
className=
{
cn
(
s
.
previewWrap
,
isMobile
&&
s
.
isMobile
,
'relative h-full overflow-y-scroll border-l border-[#F2F4F7]'
)
}
>
<
div
className=
{
cn
(
s
.
previewHeader
,
previewScrolled
&&
`${s.fixed} pb-3`
)
}
>
<
div
className=
{
cn
(
s
.
previewHeader
,
previewScrolled
&&
`${s.fixed} pb-3`
)
}
>
<
div
className=
'flex items-center justify-between px-8'
>
<
div
className=
'flex items-center justify-between px-8'
>
<
div
className=
'grow flex items-center'
>
<
div
className=
'grow flex items-center'
>
...
...
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