Skip to content

Commit 1e5f8ec

Browse files
committed
profile timeline: fix social accounts layout
1 parent 29090ae commit 1e5f8ec

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

app/profile/[login]/components/profile-timeline.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ const ProfileTimelineDescription: FC<ProfileTimelineDescriptionProps> = ({ type,
4949
const after = parseChangesetItem(changeset.a);
5050

5151
return (
52-
<div className="flex items-center gap-2">
53-
{splitCamelCase(type)}:{' '}
54-
{!!before && (
55-
<span className="opacity-50">
56-
{before} {!after && '(removed)'}
57-
</span>
58-
)}{' '}
59-
{!!before && !!after && <ArrowRight size={12} />} {after}
52+
<div className="flex gap-2">
53+
<span className="shrink-0">{`${splitCamelCase(type)}:`}</span>
54+
<span>
55+
{!!before && (
56+
<span className="opacity-50">
57+
{before} {!after && '(removed)'}
58+
</span>
59+
)}
60+
{!!before && !!after && <ArrowRight size={12} className="inline" />} {after}
61+
</span>
6062
</div>
6163
);
6264
};
@@ -69,7 +71,7 @@ export const ProfileTimeline: FC<ProfileTimelineProps> = ({ timeline, firstSeenA
6971
const sortedTimeline = timeline.sort((a, b) => compareDesc(parseISO(a.createdAt), parseISO(b.createdAt)));
7072

7173
return (
72-
<div className="flex flex-col gap-6">
74+
<div className="flex flex-col gap-6 max-w-2xl">
7375
<h2 className="text-xl font-semibold">Timeline</h2>
7476
<Timeline>
7577
{sortedTimeline.map((item) => (

0 commit comments

Comments
 (0)