fix: Adjust Load More button placement in ProfileFeed and ProfileTextFeed components (#119)

Co-authored-by: highperfocused <highperfocused@pm.me>
This commit is contained in:
mroxso
2025-05-24 21:36:45 +02:00
committed by GitHub
parent 24f0c0f9cd
commit 7ba7cd7604
2 changed files with 10 additions and 10 deletions

View File

@@ -54,11 +54,6 @@ const ProfileFeed: React.FC<ProfileFeedProps> = ({ pubkey }) => {
/>
) : null;
})}
{!isLoading && (
<div className="flex justify-center p-4">
<Button className="w-full md:w-auto" onClick={loadMore}>Load More</Button>
</div>
)}
</>
) : (
<div className="flex flex-col items-center justify-center py-10 text-gray-500">
@@ -66,6 +61,11 @@ const ProfileFeed: React.FC<ProfileFeedProps> = ({ pubkey }) => {
</div>
)}
</div>
{!isLoading && (
<div className="flex justify-center p-4">
<Button className="w-full" onClick={loadMore}>Load More</Button>
</div>
)}
</>
);
}

View File

@@ -55,14 +55,14 @@ const ProfileTextFeed: React.FC<ProfileTextFeedProps> = ({ pubkey }) => {
/>
</div>
))}
{!isLoading && filteredEvents.length > 0 && (
<div className="flex justify-center p-4">
<Button className="w-full md:w-auto" onClick={loadMore}>Load More</Button>
</div>
)}
</>
)}
</div>
{!isLoading && filteredEvents.length > 0 && (
<div className="flex justify-center p-4">
<Button className="w-full" onClick={loadMore}>Load More</Button>
</div>
)}
</>
);
}