diff --git a/frontend/src/components/profile/ProfileCard.jsx b/frontend/src/components/profile/ProfileCard.jsx index bb02452..705d985 100644 --- a/frontend/src/components/profile/ProfileCard.jsx +++ b/frontend/src/components/profile/ProfileCard.jsx @@ -9,6 +9,7 @@ import { ChevronRight } from 'lucide-react'; import Tooltip from '@ui/Tooltip'; +import ReactMarkdown from 'react-markdown'; function unsanitize(text) { if (!text) return ''; @@ -119,21 +120,7 @@ const ProfileCard = ({ )} -
- {(sortBy === 'dateModified' || - sortBy === 'dateCreated') && ( - - {sortBy === 'dateModified' - ? 'Modified' - : 'Created'} - :{' '} - {formatDate( - sortBy === 'dateModified' - ? profile.modified_date - : profile.created_date - )} - - )} +
{isSelectionMode ? ( -

+

+ {truncateDescription( unsanitize(content.description) )} -

+
)}
{/* Metadata Row */} -
-
- - - {activeCustomFormats} format - {activeCustomFormats !== 1 ? 's' : ''} - -
- -
- - {parseLanguage(content.language)} -
- - {content.upgradesAllowed && ( +
+
- - Upgrades Allowed + + + {activeCustomFormats} format + {activeCustomFormats !== 1 ? 's' : ''} +
+ +
+ + {parseLanguage(content.language)} +
+ + {content.upgradesAllowed && ( +
+ + Upgrades Allowed +
+ )} +
+ + {(sortBy === 'dateModified' || + sortBy === 'dateCreated') && ( + + {sortBy === 'dateModified' ? 'Modified' : 'Created'} + :{' '} + {formatDate( + sortBy === 'dateModified' + ? profile.modified_date + : profile.created_date + )} + )}