Skip to content

Commit a7364c1

Browse files
committed
fix: resolve emoji black outline rendering bug caused by text-transparent text clip inheritance
1 parent 2e42c17 commit a7364c1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/Header.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ export default function Header({ date, progress, total, streak }: Props) {
6161
<div className="flex items-center gap-4">
6262
<div className="hidden text-right sm:block">
6363
<div className="text-[10px] font-semibold uppercase tracking-wider text-zinc-500">连续追踪</div>
64-
<div className="text-lg font-black bg-gradient-to-r from-amber-400 via-orange-400 to-red-500 bg-clip-text text-transparent flex items-center justify-end gap-0.5">
65-
{streak}<span className="text-base select-none animate-bounce origin-bottom inline-block [animation-duration:1.5s]">🔥</span>
64+
<div className="flex items-center justify-end gap-1 select-none">
65+
<span className="text-lg font-black bg-gradient-to-r from-amber-400 via-orange-400 to-red-500 bg-clip-text text-transparent">
66+
{streak}
67+
</span>
68+
<span className="text-base animate-bounce origin-bottom inline-block [animation-duration:1.5s]">🔥</span>
6669
</div>
6770
</div>
6871
<ProgressRing value={progress} total={total} />

0 commit comments

Comments
 (0)