Skip to content

Commit 83bd0c1

Browse files
committed
Add sizing classes to star icon in RepoCard
Added 'shrink-0 w-3 h-3' classes to the SVG star icon to ensure consistent sizing and alignment within the RepoCard component.
1 parent b33c7a5 commit 83bd0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/RepoCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function RepoCard({ repo }) {
99
{repo.description && <p className="mt-1 text-sm text-gray-600">{repo.description}</p>}
1010
</div>
1111
<span className="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-gray-100 px-2 py-1 text-xs text-gray-600">
12-
<svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 17.3l-6.2 3.7 1.6-6.9L2 9.5l7-.6L12 2l3 6.9 7 .6-5.4 4.6 1.6 6.9z"/></svg>
12+
<svg className="shrink-0 w-3 h-3" width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 17.3l-6.2 3.7 1.6-6.9L2 9.5l7-.6L12 2l3 6.9 7 .6-5.4 4.6 1.6 6.9z"/></svg>
1313
{repo.stargazers_count ?? 0}
1414
</span>
1515
</div>

0 commit comments

Comments
 (0)