mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 19:30:17 +08:00
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:
parent
cc650b58d3
commit
3b34efd33a
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user