Skip to content

Commit

Permalink
avatar, username and time added in a single row
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Feb 11, 2025
1 parent 1a8a988 commit 31e43f5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/Resource/ResourceCommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,23 @@ export const Comment = ({
/>
</div>
</TooltipComponent>
<div className="flex flex-col items-start flex-grow">
<p className="text-xs space-x-2 mb-1">
<span className="text-gray-700 font-medium">
<div className="flex flex-col flex-grow mt-1">
<div className="flex items-center justify-between w-full">
<span className="text-gray-700 font-medium text-xs md:text-sm">
{formatName(created_by)}
</span>
</p>
<div className="break-words whitespace-pre-wrap">
<time
className="text-gray-500 text-xs"
dateTime={created_date}
title={formatDateTime(created_date)}
>
{relativeTime(created_date)}
</time>
</div>
<div className="break-words whitespace-pre-wrap mt-1">
<Markdown content={comment} />
</div>
</div>
<time
className="text-gray-500 text-xs"
dateTime={created_date}
title={formatDateTime(created_date)}
>
{relativeTime(created_date)}
</time>
</div>
</div>
);

0 comments on commit 31e43f5

Please sign in to comment.