mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-13 14:29:40 +00:00
Fix: document preview action (#5524)
* perf: tag popver color * fix: action
This commit is contained in:
2
.github/workflows/docs-preview.yml
vendored
2
.github/workflows/docs-preview.yml
vendored
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -277,7 +277,7 @@ const CollectionCard = () => {
|
||||
</MyTooltip>
|
||||
</Flex>
|
||||
{feConfigs?.isPlus && !!collection.tags?.length && (
|
||||
<TagsPopOver currentCollection={collection} />
|
||||
<TagsPopOver currentCollection={collection} hoverBg={'white'} />
|
||||
)}
|
||||
</Box>
|
||||
</HStack>
|
||||
|
Reference in New Issue
Block a user