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
19fc9e34
Unverified
Commit
19fc9e34
authored
Nov 17, 2023
by
crazywoola
Committed by
GitHub
Nov 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: upload file not clickable in firefox (#1552)
parent
d048557b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
181 additions
and
574 deletions
+181
-574
index.tsx
.../app/configuration/dataset-config/params-config/index.tsx
+2
-2
uploader.tsx
web/app/components/base/image-uploader/uploader.tsx
+1
-1
yarn.lock
web/yarn.lock
+178
-571
No files found.
web/app/components/app/configuration/dataset-config/params-config/index.tsx
View file @
19fc9e34
...
...
@@ -157,8 +157,8 @@ const ParamsConfig: FC = () => {
<
PortalToFollowElemContent
style=
{
{
zIndex
:
50
}
}
>
<
div
className=
'w-[240px] p-4 bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg space-y-3'
>
{
PARAMS_KEY
.
map
((
key
:
string
)
=>
{
const
currentValue
=
key
===
'top_k'
?
datasetConfigs
[
key
]
:
(
datasetConfigs
as
any
)[
key
].
value
const
currentEnableState
=
key
===
'top_k'
?
true
:
(
datasetConfigs
as
any
)[
key
].
enable
const
currentValue
=
key
===
'top_k'
?
datasetConfigs
[
key
]
:
(
datasetConfigs
as
any
)[
key
]
?
.
value
const
currentEnableState
=
key
===
'top_k'
?
true
:
(
datasetConfigs
as
any
)[
key
]
?
.
enable
return
(
<
ParamItem
key=
{
key
}
...
...
web/app/components/base/image-uploader/uploader.tsx
View file @
19fc9e34
...
...
@@ -85,7 +85,7 @@ const Uploader: FC<UploaderProps> = ({
{
children
(
hovering
)
}
<
input
className=
{
`
absolute block inset-0 opacity-0 text-[0]
absolute block inset-0 opacity-0 text-[0]
w-full
${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
`
}
onClick=
{
e
=>
(
e
.
target
as
HTMLInputElement
).
value
=
''
}
...
...
web/yarn.lock
View file @
19fc9e34
This diff is collapsed.
Click to expand it.
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