mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: my activity user image overflow (#4469)
This commit is contained in:
parent
1fac702096
commit
92c5ccef3d
@ -44,13 +44,11 @@ export const ProfileActivity = observer(() => {
|
|||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
{userProfileActivity.results.map((activity) => (
|
{userProfileActivity.results.map((activity) => (
|
||||||
<div key={activity.id} className="flex gap-3">
|
<div key={activity.id} className="flex gap-3">
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0 grid place-items-center overflow-hidden rounded h-6 w-6">
|
||||||
{activity.actor_detail?.avatar && activity.actor_detail?.avatar !== "" ? (
|
{activity.actor_detail?.avatar && activity.actor_detail?.avatar !== "" ? (
|
||||||
<img
|
<img
|
||||||
src={activity.actor_detail?.avatar}
|
src={activity.actor_detail?.avatar}
|
||||||
alt={activity.actor_detail?.display_name}
|
alt={activity.actor_detail?.display_name}
|
||||||
height={24}
|
|
||||||
width={24}
|
|
||||||
className="rounded"
|
className="rounded"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
@ -72,7 +70,9 @@ export const ProfileActivity = observer(() => {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs text-custom-text-200 whitespace-nowrap ">{calculateTimeAgo(activity.created_at)}</p>
|
<p className="text-xs text-custom-text-200 whitespace-nowrap ">
|
||||||
|
{calculateTimeAgo(activity.created_at)}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
Loading…
Reference in New Issue
Block a user