Skip to content

Commit

Permalink
Updated the event card sizing to take up the full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninad-S authored Oct 23, 2024
1 parent 976a761 commit faed6f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/community/communityEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from 'next/link';

const CommunityEvents = async () => {
const events = await api.userMetadata.getEvents();
if (events.length == 0) {
if (events.length === 0) {
return (
<div className="font-bold text-slate-500">
<div>You haven&apos;t added any community events yet 😭</div>
Expand All @@ -24,11 +24,13 @@ const CommunityEvents = async () => {
}
return (
<div
className="group flex w-full flex-col items-center space-y-7.5 pt-10 sm:items-start"
className="group flex w-full flex-col space-y-7.5 pt-10"
data-view={'list'}
>
{events.map((event) => (
<EventCard key={event.id} event={event} />
<div className="w-full" key={event.id}>
<EventCard event={event} />
</div>
))}
</div>
);
Expand Down

0 comments on commit faed6f9

Please sign in to comment.