Fix: document preview action (#5524)

* perf: tag popver color

* fix: action
This commit is contained in:
Archer
2025-08-23 13:25:50 +08:00
committed by GitHub
parent 84127a31b9
commit d9e28a5b1a
3 changed files with 7 additions and 14 deletions

View File

@@ -63,6 +63,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# Add kubeconfig setup step to handle encoding issues
- name: Setup kubeconfig

View File

@@ -16,9 +16,11 @@ import { isEqual } from 'lodash';
import { type DatasetCollectionsListItemType } from '@/global/core/dataset/type';
const TagsPopOver = ({
currentCollection
currentCollection,
hoverBg = 'myGray.50'
}: {
currentCollection: DatasetCollectionItemType | DatasetCollectionsListItemType;
hoverBg?: string;
}) => {
const { t } = useTranslation();
const {
@@ -104,20 +106,9 @@ const TagsPopOver = ({
py={0.5}
px={0.25}
_hover={{
bg: 'myGray.50',
bg: hoverBg,
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) => {
e.stopPropagation();
setShowTagManage(true);

View File

@@ -277,7 +277,7 @@ const CollectionCard = () => {
</MyTooltip>
</Flex>
{feConfigs?.isPlus && !!collection.tags?.length && (
<TagsPopOver currentCollection={collection} />
<TagsPopOver currentCollection={collection} hoverBg={'white'} />
)}
</Box>
</HStack>