Skip to content

Commit 76177d3

Browse files
authored
Merge pull request #500 from elizaOS/card-styling-change
Made font responsive on card
2 parents 6877fd1 + c5f6c4b commit 76177d3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

packages/client/src/components/grid-view.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ export const GridItem = ({ token }: { token: IToken }) => {
2828
<div className="absolute left-0 bottom-0 p-2 px-3 w-full z-10">
2929
<div className="flex items-center gap-4 justify-between">
3030
<div className="flex items-center gap-2 w-full min-w-0">
31-
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-primary text-lg font-bold font-dm-mono uppercase leading-normal tracking-widest truncate min-w-0 drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
31+
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-primary text-base md:text-md xl:text-xl font-bold font-dm-mono uppercase leading-normal tracking-widest truncate min-w-0 drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
3232
${token.ticker}
3333
</div>
3434
<Verified isVerified={token?.verified ? true : false} />
3535
</div>
36-
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-primary text-lg shrink-0 font-medium font-dm-mono drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
36+
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-primary text-base md:text-lg xl:text-xl font-medium shrink-0 font-dm-mono drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
3737
{fromNow(token.createdAt, true)}
3838
</div>
3939
</div>
4040
</div>
4141
<div className="flex flex-col w-full min-w-0 z-10">
4242
<div className="absolute flex flex-col top-0 right-0 p-2 px-3 items-end min-w-0 gap-2">
43-
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-highlight text-xl font-medium font-dm-mono leading-7 truncate drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
43+
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-highlight text-base md:text-lg xl:text-xl font-medium font-dm-mono leading-7 truncate drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
4444
MC {abbreviateNumber(token.marketCapUSD)}
4545
</div>
46-
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-primary text-xl font-medium font-dm-mono leading-7 truncate drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
46+
<div className="bg-autofun-background-muted/65 px-1 text-autofun-text-primary text-base md:text-lg xl:text-xl font-medium font-dm-mono leading-7 truncate drop-shadow-[0_0px_2px_rgba(0,0,0,0.4)] z-[2]">
4747
Vol {abbreviateNumber(token.volume24h)}
4848
</div>
4949
</div>

packages/client/src/components/verified.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export default function Verified({ isVerified }: { isVerified?: boolean }) {
99
<span>Verified</span>
1010
</Tooltip>
1111

12-
<img src="/verified.svg" id="verified" className="size-5 select-none" />
12+
<img
13+
src="/verified.svg"
14+
id="verified"
15+
className="size-4 lg:size-5 select-none"
16+
/>
1317
</Fragment>
1418
);
1519
}

0 commit comments

Comments
 (0)