Skip to content

Commit

Permalink
refactor(Related Content): change in related content grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sourtzis committed Mar 10, 2022
1 parent 475f540 commit bf856ce
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/ui/RelatedContent/RelatedContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,8 @@ function RelatedContent({ publicationCards }) {
))}
</Grid>

{/* mobile grid */}
<Grid className="mobile only" columns={1}>
{cards.map((item, index) => (
<Grid.Column key={index}>
<PublicationCard {...item}>
<PublicationCard.Header></PublicationCard.Header>
<PublicationCard.Info
description={item.description}
tag={item.tag}
></PublicationCard.Info>
</PublicationCard>
</Grid.Column>
))}
</Grid>

{/* tablet grid */}
<Grid className="tablet only">
{/* tablet & mobile grid */}
<Grid className="tablet only mobile only">
{cards.map((item, index) => (
<Grid.Column
key={index}
Expand All @@ -71,6 +56,7 @@ function RelatedContent({ publicationCards }) {
? '12'
: '6'
}
mobile={12}
>
<PublicationCard {...item}>
<PublicationCard.Header></PublicationCard.Header>
Expand Down

0 comments on commit bf856ce

Please sign in to comment.