Browse Source

fixed search bar alignment on profile feeds

imwald
Silberengel 5 months ago
parent
commit
1d4bfa56a4
  1. 8
      src/components/Profile/index.tsx

8
src/components/Profile/index.tsx

@ -204,13 +204,14 @@ export default function Profile({ id }: { id?: string }) { @@ -204,13 +204,14 @@ export default function Profile({ id }: { id?: string }) {
</div>
</div>
<div>
<div className="space-y-2">
<Tabs
value={activeTab}
tabs={tabs}
onTabChange={(tab) => setActiveTab(tab as ProfileTabValue)}
threshold={800}
options={
<div className="flex items-center gap-2 pr-2">
/>
<div className="flex items-center gap-2 pr-2 px-1">
<ProfileSearchBar
onSearch={setSearchQuery}
placeholder={`Search ${activeTab}...`}
@ -222,8 +223,7 @@ export default function Profile({ id }: { id?: string }) { @@ -222,8 +223,7 @@ export default function Profile({ id }: { id?: string }) {
className="flex-shrink-0"
/>
</div>
}
/>
</div>
{activeTab === 'posts' && (
<ProfileFeed
ref={profileFeedRef}

Loading…
Cancel
Save