Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(dashboard)/(routes)/teams/components/PostsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ useEffect(() => {
});

return (
<div className='w-full min-h-[50vh] grid sm:grid-cols-2 lg:grid-cols-3 gap-2 md:gap-4 flex-wrap '>
<div className='w-full min-h-[50vh]'>
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the grid layout classes may fix the overlapping issue but could break the intended card layout structure. Consider replacing with a proper grid or flexbox implementation rather than removing all layout styling, as this may cause cards to stack vertically without proper spacing or responsive behavior.

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should i change it to this ?

  {loading ? (
    <Loading />
  ) : filteredPosts && filteredPosts.length > 0 ? (
    <div className='w-full flex flex-wrap gap-2 md:gap-4'>
      {filteredPosts.map((entry, index) => (
        <PostCard entry={entry} key={index} />
      ))}
    </div>
  ) : (
    <div className="text-center text-slate-500 max-w-lg mx-auto mt-10 p-6">
      <h3 className="text-xl font-semibold text-slate-800 mb-2">Hmm, that&#39;s a rare combo!</h3>
      <p>
        We couldn&#39;t find any hackathons that match all of your selected filters. 
        Don&#39;t worry! Your next great project is likely just a click away. Try broadening your search.
      </p>
    </div>
  )}

  
</div>

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you must include the grid layout as without it the structure may break, you may want to adjust on the spacing

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the spacing looks good to me.like if u want i can change it


{loading ? (
<Loading />
Expand Down