From 2621b3eea447961616bed2aaab9a6ad07f62b1ae Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Sat, 18 Jan 2025 15:27:46 +1030 Subject: [PATCH] style: add styling for markdown lists --- frontend/src/components/profile/ProfileCard.jsx | 12 ++++++++---- frontend/src/components/ui/MarkdownEditor.jsx | 8 +++++++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/profile/ProfileCard.jsx b/frontend/src/components/profile/ProfileCard.jsx index 333bb85..34edf9e 100644 --- a/frontend/src/components/profile/ProfileCard.jsx +++ b/frontend/src/components/profile/ProfileCard.jsx @@ -105,7 +105,7 @@ const ProfileCard = ({ {content.tags.map(tag => ( + className='bg-blue-600/20 text-blue-400 px-2 py-1 rounded-md text-xs font-semibold shadow-sm'> {unsanitize(tag)} ))} @@ -171,12 +171,16 @@ const ProfileCard = ({ )} -
+
{/* Description - Fixed Height with Scroll */} -
+
{content.description && ( -
+
{unsanitize(content.description)} diff --git a/frontend/src/components/ui/MarkdownEditor.jsx b/frontend/src/components/ui/MarkdownEditor.jsx index 3dc9f80..b7900c5 100644 --- a/frontend/src/components/ui/MarkdownEditor.jsx +++ b/frontend/src/components/ui/MarkdownEditor.jsx @@ -139,7 +139,13 @@ const MarkdownEditor = ({value, onChange, placeholder}) => { {/* Editor/Preview Area */}
{isPreview ? ( -
+
{value ? ( {value} ) : (