Skip to content

Commit d2d4226

Browse files
committed
update: upper-right/external arrows
1 parent 20294e3 commit d2d4226

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

public/content/translations/fa/zero-knowledge-proofs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ lang: fa
108108

109109
استفاده از MACI نیازمند اعتماد به هماهنگ‌کننده مبنی بر تبانی نکردن با رشوه‌دهندگان یا تلاش برای رشوه دادن رای‌دهندگان از سوی او است. هماهنگ‌کننده می‌تواند پیام‌های کاربران را رمزگشایی کند (برای ایجاد اثبات لازم است)، بنابراین آن‌ها می‌توانند نحوۀ رای دادن هر فرد را به‌ طور دقیق تایید کنند.
110110

111-
اما در مواردی که هماهنگ‌کننده صادق است، MACI ابزاری قدرتمند برای تضمین سلامت رای‌گیری آنچین است. این امر بیان‌کنندۀ دلیل محبوبیت آن در میان برنامه‌های تامین مالی ثانویه (مانند [clr.fund](https://clr.fund/#/about/maci)) است که به‌شدت بر صحت آرای تک‌تک افراد متکی است.
111+
اما در مواردی که هماهنگ‌کننده صادق است، MACI ابزاری قدرتمند برای تضمین سلامت رای‌گیری آنچین است. این امر بیان‌کنندۀ دلیل محبوبیت آن در میان برنامه‌های تامین مالی ثانویه (مانند [clr.fund](https://clr.fund/#/about/maci)) است که به‌شدت بر صحت آرای تک‌تک افراد متکی است.
112112

113113
[درباره MACI بیشتر بدانید](https://privacy-scaling-explorations.github.io/maci/).
114114

src/components/CardList.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client"
22

3+
import { ExternalLink } from "lucide-react"
34
import TwImage, { type ImageProps } from "next/image"
45
import type { ReactNode } from "react"
56

@@ -72,7 +73,9 @@ const Card = ({
7273
<div className="mb-0 text-sm opacity-60">{caption}</div>
7374
</div>
7475
)}
75-
{isExternal && <span className={twFlipForRtl}></span>}
76+
{isExternal && (
77+
<ExternalLink className={cn("size-[1em]", twFlipForRtl)} />
78+
)}
7679
</div>
7780
)
7881
}

src/components/EthPriceCard.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

33
import { useEffect, useState } from "react"
4-
import { Info } from "lucide-react"
4+
import { ArrowUpRight, Info } from "lucide-react"
55
import { useLocale } from "next-intl"
66

77
import type { LoadingState } from "@/lib/types"
@@ -37,7 +37,7 @@ const EthPriceCard = ({
3737
const [state, setState] = useState<LoadingState<EthPriceState>>({
3838
loading: true,
3939
})
40-
const { isRtl } = useRtlFlip()
40+
const { twFlipForRtl } = useRtlFlip()
4141

4242
useEffect(() => {
4343
const fetchData = async () => {
@@ -140,18 +140,12 @@ const EthPriceCard = ({
140140
isNegativeChange ? "text-error" : "text-success"
141141
)}
142142
>
143-
<span
144-
className={cn(
145-
isNegativeChange
146-
? "after:content-['↘']"
147-
: "after:content-['↗']",
148-
"after:inline-block",
149-
/* Cannot string-interpolate 'after:', using isRtl instead */
150-
isRtl ? "after:-scale-x-100" : ""
151-
)}
152-
>
153-
{change}
154-
</span>
143+
{change}
144+
{isNegativeChange ? (
145+
<ArrowUpRight className={cn(twFlipForRtl, "inline-block")} />
146+
) : (
147+
<ArrowUpRight className={cn(twFlipForRtl, "inline-block")} />
148+
)}
155149
</div>
156150
<div className="text-sm uppercase leading-xs tracking-wider text-body-medium">
157151
({t("last-24-hrs")})

src/components/Leaderboard.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import { ExternalLink } from "lucide-react"
12
import { VisuallyHidden } from "@radix-ui/react-visually-hidden"
23

34
import Emoji from "@/components/Emoji"
45

6+
import { cn } from "@/lib/utils/cn"
7+
58
import { GITHUB_URL } from "@/lib/constants"
69

710
import { Avatar } from "./ui/avatar"
@@ -83,9 +86,7 @@ const Leaderboard = ({ content, limit = 100 }: LeaderboardProps) => {
8386
</div>
8487
</Flex>
8588
{emoji && <Emoji className="me-8 text-2xl" text={emoji} />}
86-
<span
87-
className={`after:me-1.5 after:ms-0.5 after:content-['↗'] after:${twFlipForRtl} after:inline-block`}
88-
/>
89+
<ExternalLink className={cn("size-[1em]", twFlipForRtl)} />
8990
</LinkBox>
9091
</ListItem>
9192
)

src/components/StablecoinsTable.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

33
import { Suspense, useState } from "react"
4-
import { Filter } from "lucide-react"
4+
import { ExternalLink, Filter } from "lucide-react"
55

66
import type { StablecoinType } from "@/lib/types"
77

@@ -188,7 +188,7 @@ const StablecoinsTable = ({ content, hasError }: StablecoinsTableProps) => {
188188
({activeTypeCount})
189189
</span>
190190
)}
191-
<Filter className="text-xl" />
191+
<Filter className="size-[1em]" />
192192
</DropdownMenuTrigger>
193193
<DropdownMenuContent align="start">
194194
{typeFilters.map((filter) => (
@@ -240,7 +240,7 @@ const StablecoinsTable = ({ content, hasError }: StablecoinsTableProps) => {
240240
{activePegCount !== totalPegCount && (
241241
<span className="text-xs text-body-medium">({activePegCount})</span>
242242
)}
243-
<Filter className="text-xl" />
243+
<Filter className="size-[1em]" />
244244
</DropdownMenuTrigger>
245245
<DropdownMenuContent align="start">
246246
{pegFilters.map((filter) => (
@@ -298,8 +298,10 @@ const StablecoinsTable = ({ content, hasError }: StablecoinsTableProps) => {
298298
<TableHead key={idx}>{column}</TableHead>
299299
))}
300300
{content && content[0]?.url && (
301-
<TableHead className="text-right font-normal">
302-
<span className={cn("inline-block", twFlipForRtl)}></span>
301+
<TableHead className="text-end font-normal">
302+
<ExternalLink
303+
className={cn("inline-block size-[1.125em]", twFlipForRtl)}
304+
/>
303305
</TableHead>
304306
)}
305307
</TableRow>

0 commit comments

Comments
 (0)