Skip to content

Commit 63db575

Browse files
Adebesin-Cellclaude
andcommitted
fix: sort OG packages by downloads and match icon to other OG images
- Sort packages by downloads descending for readability - Use consistent package box icon matching Package/Default OG images - Match icon size (w-16 h-16 p-3.5) to other OG components Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 793f1b4 commit 63db575

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

app/components/OgImage/Compare.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ if (layoutTier.value !== 'summary') {
9494
}
9595
}),
9696
)
97-
stats.value = results
97+
// Sort by downloads descending for readability
98+
stats.value = results.sort((a, b) => b.downloads - a.downloads)
9899
} catch {
99100
stats.value = displayPackages.value.map((name, index) => ({
100101
name,
@@ -163,23 +164,25 @@ const summaryRemainder = computed(() =>
163164
<!-- Icon + title row -->
164165
<div class="flex items-start gap-4">
165166
<div
166-
class="flex items-center justify-center w-14 h-14 p-3 rounded-xl shadow-lg bg-gradient-to-tr from-[#3b82f6]"
167+
class="flex items-center justify-center w-16 h-16 p-3.5 rounded-xl shadow-lg bg-gradient-to-tr from-[#3b82f6]"
167168
:style="{ backgroundColor: primaryColor }"
168169
>
169170
<svg
170-
width="32"
171-
height="32"
171+
width="36"
172+
height="36"
172173
viewBox="0 0 24 24"
173174
fill="none"
174175
stroke="white"
175176
stroke-width="2.5"
176177
stroke-linecap="round"
177178
stroke-linejoin="round"
178179
>
179-
<circle cx="18" cy="18" r="3" />
180-
<circle cx="6" cy="6" r="3" />
181-
<path d="M13 6h3a2 2 0 0 1 2 2v7" />
182-
<path d="M11 18H8a2 2 0 0 1-2-2V9" />
180+
<path d="m7.5 4.27 9 5.15" />
181+
<path
182+
d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"
183+
/>
184+
<path d="m3.3 7 8.7 5 8.7-5" />
185+
<path d="M12 22V12" />
183186
</svg>
184187
</div>
185188

0 commit comments

Comments
 (0)