mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
Updae theme and fix some bug (#1711)
This commit is contained in:
@@ -13,6 +13,7 @@ import { useTranslation } from 'next-i18next';
|
||||
import { useLoading } from '@fastgpt/web/hooks/useLoading';
|
||||
import { useContextSelector } from 'use-context-selector';
|
||||
import { DatasetPageContext } from '../context/datasetPageContext';
|
||||
import EmptyTip from '@fastgpt/web/components/common/EmptyTip';
|
||||
|
||||
const SelectCollections = ({
|
||||
datasetId,
|
||||
@@ -117,7 +118,7 @@ const SelectCollections = ({
|
||||
}))}
|
||||
FirstPathDom={
|
||||
<>
|
||||
<Box fontWeight={'bold'} fontSize={['sm', 'lg']}>
|
||||
<Box fontWeight={'bold'} fontSize={['sm', 'md']}>
|
||||
{title
|
||||
? title
|
||||
: type === 'folder'
|
||||
@@ -193,12 +194,7 @@ const SelectCollections = ({
|
||||
)}
|
||||
</Grid>
|
||||
{collections.length === 0 && (
|
||||
<Flex mt={'20vh'} flexDirection={'column'} alignItems={'center'}>
|
||||
<MyIcon name="empty" w={'48px'} h={'48px'} color={'transparent'} />
|
||||
<Box mt={2} color={'myGray.500'}>
|
||||
{t('common.folder.No Folder')}
|
||||
</Box>
|
||||
</Flex>
|
||||
<EmptyTip pt={'20vh'} text={t('common.folder.No Folder')}></EmptyTip>
|
||||
)}
|
||||
<Loading loading={isLoading} fixed={false} />
|
||||
</ModalBody>
|
||||
|
8
projects/app/src/web/styles/chakraui.scss
Normal file
8
projects/app/src/web/styles/chakraui.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
body input,
|
||||
body select {
|
||||
--input-font-size: var(--chakra-fontSizes-sm) !important;
|
||||
}
|
||||
|
||||
.chakra-tooltip {
|
||||
font-size: var(--chakra-fontSizes-xs) !important;
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
@import './reactflow.scss';
|
||||
@import './default.scss';
|
||||
@import './chakraui.scss';
|
||||
|
||||
body,
|
||||
h1,
|
||||
@@ -57,7 +58,7 @@ div {
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
font-size: 0.85em;
|
||||
font-size: var(--chakra-fontSizes-mini);
|
||||
}
|
||||
|
||||
* {
|
||||
|
Reference in New Issue
Block a user