diff --git a/src/custom/DashboardWidgets/RecentDesignWidget.tsx b/src/custom/DashboardWidgets/RecentDesignWidget.tsx index ab58dde9..d22892d7 100644 --- a/src/custom/DashboardWidgets/RecentDesignWidget.tsx +++ b/src/custom/DashboardWidgets/RecentDesignWidget.tsx @@ -24,7 +24,7 @@ import { Modal, ModalBody } from '../Modal'; interface Resource { link: string; name: string; - icon?: string; + icon?: React.ReactNode; external?: boolean; timestamp: string; } @@ -77,18 +77,17 @@ const ResourcesList = styled('ul')({ margin: '0' }); -const ResourceItem = styled('li')({ +const ResourceItem = styled('li')(({ theme }) => ({ listStyleType: 'none', display: 'flex', flexDirection: 'row', - alignItems: 'center' -}); + alignItems: 'center', + gap: '0.25rem', -const ResourceIcon = styled('img')({ - width: '12px', - height: '12px', - marginRight: '.25rem' -}); + '&:hover': { + color: theme.palette.primary.main + } +})); const ResourceLink = styled(Link)({ fontSize: '1rem', @@ -97,7 +96,12 @@ const ResourceLink = styled(Link)({ overflow: 'hidden', textOverflow: 'ellipsis', maxWidth: '12rem', - textDecoration: 'none' + textDecoration: 'none', + color: 'inherit', + + '&:hover': { + textDecoration: 'none' + } }); const TimestampText = styled(Typography)({ @@ -201,12 +205,9 @@ const DesignCard: React.FC = ({ {resources.map((item) => ( - {item.icon && ( - - )} + + {item.icon} + {item.name} {item.external == true ? (