From 95b5fb651db2a35d5ec95b436438241cde38f008 Mon Sep 17 00:00:00 2001 From: Xhenzouu Date: Mon, 19 Oct 2026 12:57:54 +0800 Subject: [PATCH] fix: use logical alignment classes for RTL support --- src/components/cards/community-card-item.tsx | 2 +- src/components/cards/pr-card-item.tsx | 2 +- src/components/cards/repo-card-item.tsx | 2 +- src/components/providers/language-switcher.tsx | 2 +- src/features/comparison/components/result-dashboard.tsx | 4 ++-- src/features/developer/components/user-profile-client.tsx | 4 ++-- src/features/leaderboard/components/country-grid-client.tsx | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/cards/community-card-item.tsx b/src/components/cards/community-card-item.tsx index 284c778..a41b403 100644 --- a/src/components/cards/community-card-item.tsx +++ b/src/components/cards/community-card-item.tsx @@ -73,7 +73,7 @@ export function CommunityCardItem({ -
+

{item.score ?? 0}

{t("comparison.score")} diff --git a/src/components/cards/pr-card-item.tsx b/src/components/cards/pr-card-item.tsx index 661ba89..ae70a03 100644 --- a/src/components/cards/pr-card-item.tsx +++ b/src/components/cards/pr-card-item.tsx @@ -95,7 +95,7 @@ export function PullRequestCardItem({ ) : null}

-
+

{pr.score ?? 0}

{t("comparison.score")} diff --git a/src/components/cards/repo-card-item.tsx b/src/components/cards/repo-card-item.tsx index 09e805e..0a5029a 100644 --- a/src/components/cards/repo-card-item.tsx +++ b/src/components/cards/repo-card-item.tsx @@ -91,7 +91,7 @@ export function RepoCardItem({ ) : null}

-
+

{repo.score ?? 0}

{t("comparison.score")} diff --git a/src/components/providers/language-switcher.tsx b/src/components/providers/language-switcher.tsx index cdc9324..a7e3f89 100644 --- a/src/components/providers/language-switcher.tsx +++ b/src/components/providers/language-switcher.tsx @@ -95,7 +95,7 @@ export function LanguageSwitcher() { role="option" aria-selected={isSelected} className={cn( - "flex w-full items-center rounded-md px-2 py-1.5 text-left transition-colors", + "flex w-full items-center rounded-md px-2 py-1.5 text-start transition-colors", "hover:bg-accent hover:text-accent-foreground", "focus:outline-none focus:ring-2 focus:ring-primary/40", isSelected && "bg-accent text-accent-foreground", diff --git a/src/features/comparison/components/result-dashboard.tsx b/src/features/comparison/components/result-dashboard.tsx index 85eaa3d..b7875b9 100644 --- a/src/features/comparison/components/result-dashboard.tsx +++ b/src/features/comparison/components/result-dashboard.tsx @@ -390,7 +390,7 @@ export function ResultDashboard({ />

@@ -435,7 +435,7 @@ export function ResultDashboard({
{/* Bold Stat Block on Desktop */} -
+

{t("banner.leadby")}

diff --git a/src/features/developer/components/user-profile-client.tsx b/src/features/developer/components/user-profile-client.tsx index b10eeac..b182f86 100644 --- a/src/features/developer/components/user-profile-client.tsx +++ b/src/features/developer/components/user-profile-client.tsx @@ -232,7 +232,7 @@ export function UserProfileClient({ user, location, countryParam }: Props) { {/* ── Header Profile Hero Section ────────────────────────────── */}