fix: mcp tags overflow (#9662)

This commit is contained in:
one 2025-08-29 17:29:27 +08:00 committed by GitHub
parent c376426cdf
commit 25c94dc2f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import { DeleteIcon } from '@renderer/components/Icons'
import Scrollbar from '@renderer/components/Scrollbar'
import { getMcpTypeLabel } from '@renderer/i18n/label'
import { MCPServer } from '@renderer/types'
import { Button, Switch, Tag, Typography } from 'antd'
@ -160,12 +161,19 @@ const ServerDescription = styled.div`
height: 50px;
`
const ServerFooter = styled.div`
const ServerFooter = styled(Scrollbar)`
display: flex;
align-items: center;
gap: 4px;
justify-content: flex-start;
flex-direction: row;
overflow-x: auto;
min-height: 22px;
gap: 4px;
margin-top: 10px;
&::-webkit-scrollbar {
display: none;
}
`
const ServerTag = styled(Tag)`