Skip to content

Commit

Permalink
Improve card display even more
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Oct 28, 2023
1 parent ff0da9b commit c9b182d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion site/src/components/MapCards.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
white-space: inherit;
}

.map-img-holder {
position: relative;
}

.map-stack-size {
position: absolute;
top: 5px;
bottom: 5px;
left: 5px;
}

Expand Down
11 changes: 7 additions & 4 deletions site/src/components/MapCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,13 @@ const MapCard = ({ unique, card }) => {
return (
<span className="tooltip-tag tooltip-tag-left tooltip-tag-compact">
<span className="tooltip-tag-text">
<img src={card.art} className="mb-1" alt="" loading="lazy" />
<span className="badge bg-light text-dark map-stack-size">
<b>{card.stack}</b>
</span>
<span className="badge bg-light text-dark w-100 map-reward mb-1">{card.name}</span>
<div className="map-img-holder mb-1">
<img src={card.art} alt="" loading="lazy" />
<span className="badge bg-light text-dark map-stack-size">
<b>{card.stack}</b>
</span>
</div>
<span className="badge bg-dark text-light w-100 map-reward mb-1">{card.reward}</span>
<b>Price</b>: {card.price} <img src="/img/chaos.png" alt="c" width="16" />
<br />
Expand Down

0 comments on commit c9b182d

Please sign in to comment.