Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
d9e28a5b
authored
Aug 23, 2025
by
Archer
Committed by
GitHub
Aug 23, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: document preview action (#5524)
* perf: tag popver color * fix: action
parent
84127a31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
.github/workflows/docs-preview.yml
+2
-0
projects/app/src/pageComponents/dataset/detail/CollectionCard/TagsPopOver.tsx
+4
-13
projects/app/src/pageComponents/dataset/detail/CollectionCard/index.tsx
+1
-1
No files found.
.github/workflows/docs-preview.yml
View file @
d9e28a5b
...
@@ -63,6 +63,8 @@ jobs:
...
@@ -63,6 +63,8 @@ jobs:
steps
:
steps
:
-
name
:
Checkout code
-
name
:
Checkout code
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
with
:
ref
:
${{ github.event.pull_request.head.sha }}
# Add kubeconfig setup step to handle encoding issues
# Add kubeconfig setup step to handle encoding issues
-
name
:
Setup kubeconfig
-
name
:
Setup kubeconfig
...
...
projects/app/src/pageComponents/dataset/detail/CollectionCard/TagsPopOver.tsx
View file @
d9e28a5b
...
@@ -16,9 +16,11 @@ import { isEqual } from 'lodash';
...
@@ -16,9 +16,11 @@ import { isEqual } from 'lodash';
import
{
type
DatasetCollectionsListItemType
}
from
'@/global/core/dataset/type'
;
import
{
type
DatasetCollectionsListItemType
}
from
'@/global/core/dataset/type'
;
const
TagsPopOver
=
({
const
TagsPopOver
=
({
currentCollection
currentCollection
,
hoverBg
=
'myGray.50'
}:
{
}:
{
currentCollection
:
DatasetCollectionItemType
|
DatasetCollectionsListItemType
;
currentCollection
:
DatasetCollectionItemType
|
DatasetCollectionsListItemType
;
hoverBg
?:
string
;
})
=>
{
})
=>
{
const
{
t
}
=
useTranslation
();
const
{
t
}
=
useTranslation
();
const
{
const
{
...
@@ -104,20 +106,9 @@ const TagsPopOver = ({
...
@@ -104,20 +106,9 @@ const TagsPopOver = ({
py=
{
0.5
}
py=
{
0.5
}
px=
{
0.25
}
px=
{
0.25
}
_hover=
{
{
_hover=
{
{
bg
:
'myGray.50'
,
bg
:
hoverBg
,
borderRadius
:
'3px'
borderRadius
:
'3px'
}
}
}
}
onMouseEnter=
{
(
e
)
=>
{
e
.
stopPropagation
();
if
(
!
e
.
currentTarget
.
parentElement
||
!
e
.
currentTarget
.
parentElement
.
parentElement
)
return
;
e
.
currentTarget
.
parentElement
.
parentElement
.
style
.
backgroundColor
=
'white'
;
}
}
onMouseLeave=
{
(
e
)
=>
{
if
(
!
e
.
currentTarget
.
parentElement
||
!
e
.
currentTarget
.
parentElement
.
parentElement
)
return
;
e
.
currentTarget
.
parentElement
.
parentElement
.
style
.
backgroundColor
=
''
;
}
}
onClick=
{
(
e
)
=>
{
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
e
.
stopPropagation
();
setShowTagManage
(
true
);
setShowTagManage
(
true
);
...
...
projects/app/src/pageComponents/dataset/detail/CollectionCard/index.tsx
View file @
d9e28a5b
...
@@ -277,7 +277,7 @@ const CollectionCard = () => {
...
@@ -277,7 +277,7 @@ const CollectionCard = () => {
</
MyTooltip
>
</
MyTooltip
>
</
Flex
>
</
Flex
>
{
feConfigs
?.
isPlus
&&
!!
collection
.
tags
?.
length
&&
(
{
feConfigs
?.
isPlus
&&
!!
collection
.
tags
?.
length
&&
(
<
TagsPopOver
currentCollection=
{
collection
}
/>
<
TagsPopOver
currentCollection=
{
collection
}
hoverBg=
{
'white'
}
/>
)
}
)
}
</
Box
>
</
Box
>
</
HStack
>
</
HStack
>
...
...
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