Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/app/explore/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ export default async function ExplorePage({ searchParams }: ExplorePageProps) {
const rowData = row as any;
const name = isOrg ? rowData.name : (rowData.name || rowData.username);
const sub = isOrg ? `@${rowData.slug}` : `@${rowData.username}`;
// Replace line 171 with this:
const avatar = rowData.avatar_url || `https://github.com/${isOrg ? encodeURIComponent(rowData.slug) : encodeURIComponent(rowData.username)}.png`;
const avatar = rowData.avatar_url || `https://github.com/${isOrg ? encodeURIComponent(rowData.slug) : encodeURIComponent(rowData.username)}.png`;
const score = typeof rowData.score === "number" ? rowData.score : 0;
const isTop = rank <= 3;

Expand All @@ -158,7 +157,7 @@ const avatar = rowData.avatar_url || `https://github.com/${isOrg ? encodeURIComp
style={{ display: "flex", alignItems: "center", gap: "16px", padding: "14px 18px", border: "1px solid var(--color-hairline)", borderRadius: "12px", textDecoration: "none", background: "var(--color-canvas-soft)" }}
>
{/* Rank Indicator */}
<span aria-label={`Rank ${rank}`} style={{ minWidth: "32px", fontSize: "16px", fontWeight: 600, color: isTop ? "var(--color-primary)" : "var(--color-ink-mute)", textAlign: "center", flexShrink: 0 }}>
<span aria-label={`Rank ${rank}`} style={{ minWidth: "32px", fontSize: "16px", fontWeight: 600, color: isTop ? "var(--color-primary)" : "var(--color-ink-mute)", flexShrink: 0, display: "inline-flex", alignItems: "center", justifyContent: "center", lineHeight: 1 }}>
{rank === 1 ? "πŸ₯‡" : rank === 2 ? "πŸ₯ˆ" : rank === 3 ? "πŸ₯‰" : rank}
</span>

Expand Down
Loading