Skip to content

Commit

Permalink
fix: multiline card name indentation, fix #456
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Jan 7, 2025
1 parent 8a3594e commit 85fb172
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/ComboResults/ComboResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ComboResult: React.FC<ResultProps> = ({
<span className="sr-only">Cards in combo:</span>
{combo.uses.map(({ card, quantity }) => (
<CardTooltip cardName={quantity > 1 ? `${quantity}x ${card.name}` : card.name} key={card.name}>
<div className="card-name pl-3 pr-3">
<div className={`card-name pl-3 pr-3 ${styles.cardName}`}>
{decklist && quantity - (decklist.get(card.name.toLowerCase()) ?? 0) > 0 ? (
decklistMessage != undefined ? (
<strong className="text-blue-800">
Expand Down
5 changes: 5 additions & 0 deletions src/components/search/ComboResults/comboResults.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
@apply w-full bg-pink-300 text-right dark:bg-link;
}

.cardName {
text-indent: -1em;
margin-left: 1em;
}

@media (min-width: 768px) {
.comboResult {
@apply m-2;
Expand Down

0 comments on commit 85fb172

Please sign in to comment.