mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed tabs in profiles showing up in the wrong place
ref https://linear.app/tryghost/issue/AP-429/add-ui-for-searching-and-viewing-mastodon-profiles
This commit is contained in:
parent
1bb09a9b7e
commit
0729c76b95
1 changed files with 14 additions and 27 deletions
|
@ -168,15 +168,20 @@ const ProfileSearchResultModal: React.FC<ProfileSearchResultModalProps> = ({
|
||||||
title: 'Posts',
|
title: 'Posts',
|
||||||
contents: (
|
contents: (
|
||||||
<div>
|
<div>
|
||||||
{posts.map(post => (
|
{posts.map((post, index) => (
|
||||||
<FeedItem
|
<div>
|
||||||
actor={profile.actor}
|
<FeedItem
|
||||||
comments={post.object.replies}
|
actor={profile.actor}
|
||||||
layout='feed'
|
comments={post.object.replies}
|
||||||
object={post.object}
|
layout='feed'
|
||||||
type={post.type}
|
object={post.object}
|
||||||
onCommentClick={() => {}}
|
type={post.type}
|
||||||
/>
|
onCommentClick={() => {}}
|
||||||
|
/>
|
||||||
|
{index < posts.length - 1 && (
|
||||||
|
<div className="h-px w-full bg-grey-200"></div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -278,24 +283,6 @@ const ProfileSearchResultModal: React.FC<ProfileSearchResultModalProps> = ({
|
||||||
onClick={toggleExpand}
|
onClick={toggleExpand}
|
||||||
/>}
|
/>}
|
||||||
</div>)}
|
</div>)}
|
||||||
<Heading className='mt-8' level={5}>Posts</Heading>
|
|
||||||
|
|
||||||
{posts.map((post) => {
|
|
||||||
if (post.type === 'Announce') {
|
|
||||||
return null;
|
|
||||||
} else {
|
|
||||||
return (
|
|
||||||
<FeedItem
|
|
||||||
actor={profile.actor}
|
|
||||||
comments={post.object.replies}
|
|
||||||
layout='feed'
|
|
||||||
object={post.object}
|
|
||||||
type={post.type}
|
|
||||||
onCommentClick={() => {}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
})}
|
|
||||||
<TabView<ProfileTab>
|
<TabView<ProfileTab>
|
||||||
containerClassName='mt-6'
|
containerClassName='mt-6'
|
||||||
selectedTab={selectedTab}
|
selectedTab={selectedTab}
|
||||||
|
|
Loading…
Reference in a new issue