mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-13 22:56:28 +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:
|
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
|
||||||
|
@@ -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 = ({
|
|||||||
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);
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user