feat(settings): update MCP server card layout and styling

- Adjusted the width of the CardContainer to dynamically calculate based on viewport width.
- Changed the layout of the McpServersList from grid to list, with a vertical orientation and updated styling for list items.
This commit is contained in:
kangfenmao 2025-09-22 20:24:54 +08:00
parent cc650b58d3
commit 3b34efd33a
2 changed files with 4 additions and 1 deletions

View File

@ -183,6 +183,7 @@ const CardContainer = styled.div<{ $isActive: boolean }>`
margin-bottom: 5px;
height: 125px;
opacity: ${(props) => (props.$isActive ? 1 : 0.6)};
width: calc(100vw - var(--settings-width) - 40px);
&:hover {
opacity: 1;

View File

@ -249,7 +249,9 @@ const McpServersList: FC = () => {
items={filteredMcpServers}
itemKey="id"
onSortEnd={onSortEnd}
layout="grid"
layout="list"
horizontal={false}
listStyle={{ display: 'flex', flexDirection: 'column' }}
gap="12px"
restrictions={{ scrollableAncestor: true }}
useDragOverlay