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
edad824e
Commit
edad824e
authored
Jul 25, 2023
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: too long dataset text
parent
d59cf7fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
2 deletions
+53
-2
index.tsx
...app/configuration/dataset-config/select-dataset/index.tsx
+6
-2
checked.svg
...app/components/base/icons/assets/public/model/checked.svg
+3
-0
Checked.json
web/app/components/base/icons/src/public/model/Checked.json
+29
-0
Checked.tsx
web/app/components/base/icons/src/public/model/Checked.tsx
+14
-0
index.ts
web/app/components/base/icons/src/public/model/index.ts
+1
-0
No files found.
web/app/components/app/configuration/dataset-config/select-dataset/index.tsx
View file @
edad824e
...
@@ -128,8 +128,12 @@ const SelectDataSet: FC<ISelectDataSetProps> = ({
...
@@ -128,8 +128,12 @@ const SelectDataSet: FC<ISelectDataSetProps> = ({
<
div
className=
'max-w-[200px] text-[13px] font-medium text-gray-800 overflow-hidden text-ellipsis whitespace-nowrap'
>
{
item
.
name
}
</
div
>
<
div
className=
'max-w-[200px] text-[13px] font-medium text-gray-800 overflow-hidden text-ellipsis whitespace-nowrap'
>
{
item
.
name
}
</
div
>
</
div
>
</
div
>
<
div
className=
'max-w-[140px] flex text-xs text-gray-500 overflow-hidden text-ellipsis whitespace-nowrap'
>
<
div
className=
'flex text-xs text-gray-500 overflow-hidden whitespace-nowrap'
>
{
formatNumber
(
item
.
word_count
)
}
{
t
(
'appDebug.feature.dataSet.words'
)
}
·
{
formatNumber
(
item
.
document_count
)
}
{
t
(
'appDebug.feature.dataSet.textBlocks'
)
}
<
span
className=
'max-w-[100px] overflow-hidden text-ellipsis whitespace-nowrap'
>
{
formatNumber
(
item
.
word_count
)
}
</
span
>
{
t
(
'appDebug.feature.dataSet.words'
)
}
<
span
className=
'px-0.5'
>
·
</
span
>
<
span
className=
'max-w-[100px] min-w-[8px] overflow-hidden text-ellipsis whitespace-nowrap'
>
{
formatNumber
(
item
.
document_count
)
}
</
span
>
{
t
(
'appDebug.feature.dataSet.textBlocks'
)
}
</
div
>
</
div
>
</
div
>
</
div
>
))
}
))
}
...
...
web/app/components/base/icons/assets/public/model/checked.svg
0 → 100644
View file @
edad824e
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M13.3332 4L5.99984 11.3333L2.6665 8"
stroke=
"#155EEF"
stroke-width=
"2"
stroke-linecap=
"round"
stroke-linejoin=
"round"
/>
</svg>
web/app/components/base/icons/src/public/model/Checked.json
0 → 100644
View file @
edad824e
{
"icon"
:
{
"type"
:
"element"
,
"isRootNode"
:
true
,
"name"
:
"svg"
,
"attributes"
:
{
"width"
:
"16"
,
"height"
:
"16"
,
"viewBox"
:
"0 0 16 16"
,
"fill"
:
"none"
,
"xmlns"
:
"http://www.w3.org/2000/svg"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M13.3332 4L5.99984 11.3333L2.6665 8"
,
"stroke"
:
"#155EEF"
,
"stroke-width"
:
"2"
,
"stroke-linecap"
:
"round"
,
"stroke-linejoin"
:
"round"
},
"children"
:
[]
}
]
},
"name"
:
"Checked"
}
\ No newline at end of file
web/app/components/base/icons/src/public/model/Checked.tsx
0 → 100644
View file @
edad824e
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./Checked.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
const
Icon
=
React
.
forwardRef
<
React
.
MutableRefObject
<
SVGElement
>
,
Omit
<
IconBaseProps
,
'data'
>>
((
props
,
ref
,
)
=>
<
IconBase
{
...
props
}
ref=
{
ref
}
data=
{
data
as
IconData
}
/>)
export
default
Icon
web/app/components/base/icons/src/public/model/index.ts
0 → 100644
View file @
edad824e
export
{
default
as
Checked
}
from
'./Checked'
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