Skip to content

Commit

Permalink
Fix stationary tag position
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Jun 11, 2024
1 parent 39ecfe5 commit 38a842c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/components/cards/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const CardHeader = styled.div`
justify-items: ${({ imagePosition }) =>
imagePosition === "left top" ? "flex-start" : "center"};
min-height: 180px;
margin-bottom: 0.5rem;
`

const Card = ({
Expand Down Expand Up @@ -77,27 +78,26 @@ const Card = ({
<Placeholder size="medium" color={colors[mode].text} />
</div>
)}
{tag && (
<div
css={`
{
grid-area: 1 / 1;
align-self: flex-end;
justify-self: flex-start;
text-transform: uppercase;
border: 1px solid;
padding: 0.25rem;
margin: 1rem 0;
background-color: ${colors[mode].background};
}
`}
data-cy={`${tag.toLowerCase()}-tag`}
>
{tag}
</div>
)}
</CardHeader>
{children}
{tag && (
<div
css={`
{
grid-area: 1 / 1;
display: inline-block;
text-transform: uppercase;
border: 1px solid;
padding: 0.25rem;
margin: 1rem 0;
background-color: ${colors[mode].background};
}
`}
data-cy={`${tag.toLowerCase()}-tag`}
>
{tag}
</div>
)}
</Link>
{footerList && (
<div
Expand Down

0 comments on commit 38a842c

Please sign in to comment.