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
38754734
Unverified
Commit
38754734
authored
May 22, 2023
by
KVOJJJin
Committed by
GitHub
May 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix:style of new line (#134)
parent
b42cd38c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
index.module.css
.../components/datasets/create/file-preview/index.module.css
+3
-0
index.tsx
...omponents/datasets/create/step-two/preview-item/index.tsx
+1
-1
style.module.css
...ents/datasets/documents/detail/completed/style.module.css
+1
-0
No files found.
web/app/components/datasets/create/file-preview/index.module.css
View file @
38754734
...
@@ -43,4 +43,7 @@
...
@@ -43,4 +43,7 @@
background
:
#f9fafb
center
no-repeat
url(../assets/Loading.svg)
;
background
:
#f9fafb
center
no-repeat
url(../assets/Loading.svg)
;
background-size
:
contain
;
background-size
:
contain
;
}
}
.fileContent
{
white-space
:
pre-line
;
}
\ No newline at end of file
web/app/components/datasets/create/step-two/preview-item/index.tsx
View file @
38754734
...
@@ -41,7 +41,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({
...
@@ -41,7 +41,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'mt-2 max-h-[120px] line-clamp-6 overflow-hidden text-sm text-gray-800'
>
<
div
className=
'mt-2 max-h-[120px] line-clamp-6 overflow-hidden text-sm text-gray-800'
>
{
content
}
<
div
style=
{
{
whiteSpace
:
'pre-line'
}
}
>
{
content
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
)
)
...
...
web/app/components/datasets/documents/detail/completed/style.module.css
View file @
38754734
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
}
}
.segModalContent
{
.segModalContent
{
@apply
h-96
text-gray-800
text-base
overflow-y-scroll;
@apply
h-96
text-gray-800
text-base
overflow-y-scroll;
white-space
:
pre-line
;
}
}
.footer
{
.footer
{
@apply
flex
items-center
justify-between
box-border
border-t-gray-200
border-t-[0.5px]
pt-3
mt-4;
@apply
flex
items-center
justify-between
box-border
border-t-gray-200
border-t-[0.5px]
pt-3
mt-4;
...
...
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