diff --git a/packages/ui/src/ui-component/cards/ItemCard.js b/packages/ui/src/ui-component/cards/ItemCard.js index d320a93b2c9..506947ce699 100644 --- a/packages/ui/src/ui-component/cards/ItemCard.js +++ b/packages/ui/src/ui-component/cards/ItemCard.js @@ -11,14 +11,18 @@ import SkeletonChatflowCard from 'ui-component/cards/Skeleton/ChatflowCard' const CardWrapper = styled(MainCard)(({ theme }) => ({ background: theme.palette.card.main, color: theme.darkTextPrimary, - overflow: 'hidden', + overflow: 'auto', position: 'relative', boxShadow: '0 2px 14px 0 rgb(32 40 45 / 8%)', cursor: 'pointer', '&:hover': { background: theme.palette.card.hover, boxShadow: '0 2px 14px 0 rgb(32 40 45 / 20%)' - } + }, + maxHeight: '300px', + maxWidth: '300px', + overflowWrap: 'break-word', + whiteSpace: 'pre-line' })) // ===========================|| CONTRACT CARD ||=========================== // @@ -46,9 +50,17 @@ const ItemCard = ({ isLoading, data, images, onClick }) => {
- {data.name} + + {data.name} +
- {data.description && {data.description}} + {data.description && ( + + {data.description} + + )} {data.deployed && ( @@ -57,16 +69,24 @@ const ItemCard = ({ isLoading, data, images, onClick }) => { )} {images && ( -
+
{images.map((img) => (