Skip to content

Commit b1bf0b4

Browse files
committed
fix: make author order go further
1 parent 9032706 commit b1bf0b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/next-blog/src/app/components/blog/AuthorList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export function AuthorList(props: Props) {
2424
href={`/author/${author.slug}`}
2525
className={cx(
2626
`group/one absolute h-8 min-w-[2rem] !rounded-none border-2 border-black px-2 `,
27-
idx === 0 && 'bg-white',
28-
idx === 1 && 'bg-orange-500 text-black',
29-
idx === 2 && 'bg-blue-500 text-white',
27+
idx % 3 === 0 && 'bg-white',
28+
idx % 3 === 1 && 'bg-orange-500 text-black',
29+
idx % 3 === 2 && 'bg-blue-500 text-white',
3030
)}
3131
style={{
3232
// '--size': '40px',

0 commit comments

Comments
 (0)