Skip to content

Commit

Permalink
fix: improve emoji ticker display in token cards
Browse files Browse the repository at this point in the history
Co-Authored-By: devin.riot152@passmail.net <devin.riot152@passmail.net>
  • Loading branch information
2 people authored and reinamora137 committed Dec 19, 2024
1 parent ad22703 commit 7c6f287
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions islands/src20/cards/SRC20BaseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function SRC20BaseCard(
alt={convertToEmoji(src20.tick)}
/>
<div class="flex flex-col">
<p class="text-2xl mobileLg:text-4xl font-black uppercase flex gap-4">
<p class="text-2xl mobileLg:text-4xl font-black uppercase flex gap-4 relative z-[20]">
{(() => {
const { text, emoji } = splitTextAndEmojis(
convertToEmoji(src20.tick),
Expand All @@ -83,11 +83,10 @@ export function SRC20BaseCard(
{text}
</span>
)}
{emoji && <span>{emoji}</span>}
{emoji && <span class="emoji-ticker">{emoji}</span>}
</>
);
})()}
{/* Social Icons */}
<div class="flex gap-2">
{src20.email != null && (
<a href={src20.email} target="_blank">
Expand Down
9 changes: 9 additions & 0 deletions static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,12 @@ body {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}

/* Emoji ticker styling for SRC20 cards */
.emoji-ticker {
@apply text-stamp-primary-hover;
font-family: system-ui;
line-height: 1;
display: inline-flex;
align-items: center;
}

0 comments on commit 7c6f287

Please sign in to comment.