Skip to content

Commit

Permalink
CardSlot: vertically center cost
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 23, 2024
1 parent 8ac069b commit 9401f1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Components/CardImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ export default function CardImage(props) {
color: props.card.upped ? '#000' : '#fff',
...props.style,
}}>
<span style="overflow:hidden;text-overflow:ellipsis">
{props.card.name}
</span>
<span style="name">{props.card.name}</span>
{!!props.card.cost && (
<span style="flex-shrink:0;pointer-events:none">
<span class="cost">
{props.card.cost}
<span class={'ico te' + props.card.costele} />
</span>
Expand Down
10 changes: 10 additions & 0 deletions ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ select:hover:active {
white-space: nowrap;
justify-content: space-between;
}
.cardslot > .name {
overflow: hidden;
text-overflow: ellipsis;
}
.cardslot > .cost {
display: flex;
align-items: center;
flex-shrink: 0;
pointer-events: none;
}
.maintitle {
font-size: 16px;
text-align: center;
Expand Down

0 comments on commit 9401f1a

Please sign in to comment.