This commit is contained in:
archer
2023-07-25 16:14:03 +08:00
parent e5e720e87e
commit 67724f2fa6
2 changed files with 9 additions and 7 deletions

View File

@@ -215,7 +215,7 @@ const Info = (
setRefresh(!refresh); setRefresh(!refresh);
}} }}
/> />
<Box w={'100%'} pl={['90px', '160px']} mt={2}> <Flex w={'100%'} pl={['90px', '160px']} mt={2}>
{getValues('tags') {getValues('tags')
.split(' ') .split(' ')
.filter((item) => item) .filter((item) => item)
@@ -224,7 +224,7 @@ const Info = (
{item} {item}
</Tag> </Tag>
))} ))}
</Box> </Flex>
</Flex> </Flex>
<Flex mt={5} w={'100%'} alignItems={'flex-end'}> <Flex mt={5} w={'100%'} alignItems={'flex-end'}>

View File

@@ -132,11 +132,13 @@ const Kb = () => {
/> />
</Flex> </Flex>
<Box flex={'1 0 0'} overflow={'hidden'} pt={2}> <Box flex={'1 0 0'} overflow={'hidden'} pt={2}>
{kb.tags.map((tag, i) => ( <Flex>
<Tag key={i} mr={2} mb={2}> {kb.tags.map((tag, i) => (
{tag} <Tag key={i} mr={2} mb={2}>
</Tag> {tag}
))} </Tag>
))}
</Flex>
</Box> </Box>
</Card> </Card>
))} ))}