@@ -71,69 +71,52 @@ const authorLogo = authorData[model.author]?.logo;
7171 href ={ href }
7272 class =" group/card hover:bg-muted/30 focus-visible:outline-ring relative flex h-full flex-col p-5 text-inherit! no-underline transition-colors duration-150 focus-visible:outline-2 focus-visible:-outline-offset-2"
7373 >
74- {
75- isPinned && (
76- <>
77- <span class = " sr-only" >Pinned</span >
78- <span
79- class = " bg-primary/10 text-primary ring-primary/20 pointer-events-none absolute top-3 right-3 z-20 grid size-6 place-items-center rounded-md ring-1 ring-inset"
80- title = " Pinned model"
81- aria-hidden = " true"
82- >
83- <Icon name = " ph:push-pin-fill" class = " size-3.5" />
84- </span >
85- </>
86- )
87- }
74+ { isPinned && (
75+ <>
76+ <span class = " sr-only" >Pinned</span >
77+ <span
78+ class = " bg-primary/10 text-primary ring-primary/20 pointer-events-none absolute top-3 right-3 z-20 grid size-6 place-items-center rounded-md ring-1 ring-inset"
79+ title = " Pinned model"
80+ aria-hidden = " true"
81+ >
82+ <Icon name = " ph:push-pin-fill" class = " size-3.5" />
83+ </span >
84+ </>
85+ )}
8886 <div class ={ ` flex items-center gap-3${isPinned ? " pr-9" : " " } ` } >
89- {
90- authorLogo ? (
91- <img
92- src = { authorLogo }
93- alt = { ` ${model .authorName } logo ` }
94- loading = " lazy"
95- class = " border-border bg-card size-10 shrink-0 rounded-md border object-contain p-1 dark:bg-gray-200"
96- />
97- ) : (
98- <span
99- aria-hidden = " true"
100- class = " border-border bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-md border text-base font-bold uppercase"
101- >
102- { model .author .charAt (0 )}
103- </span >
104- )
105- }
106- <div class =" flex min-w-0 flex-1 items-center gap-2" >
107- <h3
108- class =" text-foreground group-hover/card:text-primary line-clamp-2 text-sm leading-snug font-semibold break-words"
87+ { authorLogo ? (
88+ <img
89+ src = { authorLogo }
90+ alt = { ` ${model .authorName } logo ` }
91+ loading = " lazy"
92+ class = " border-border bg-card size-10 shrink-0 rounded-md border object-contain p-1 dark:bg-gray-200"
93+ />
94+ ) : (
95+ <span
96+ aria-hidden = " true"
97+ class = " border-border bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-md border text-base font-bold uppercase"
10998 >
99+ { model .author .charAt (0 )}
100+ </span >
101+ )}
102+ <div class =" flex min-w-0 flex-1 items-center gap-2" >
103+ <h3 class =" text-foreground group-hover/card:text-primary line-clamp-2 text-sm leading-snug font-semibold break-words" >
110104 { model .shortName }
111105 </h3 >
112- {
113- model .beta && (
114- <Badge
115- text = " Beta"
116- variant = " caution"
117- size = " small"
118- class = " shrink-0"
119- />
120- )
121- }
106+ { model .beta && (
107+ <Badge text = " Beta" variant = " caution" size = " small" class = " shrink-0" />
108+ )}
122109 </div >
123110 </div >
124111
125- <div
126- class =" border-border mt-3 mb-3 flex items-center justify-between gap-2 border-t pt-3 text-xs"
127- >
112+ <div class =" border-border mt-3 mb-3 flex items-center justify-between gap-2 border-t pt-3 text-xs" >
128113 <span class =" text-foreground truncate" >{ model .authorName } </span >
129114 <span class =" text-foreground shrink-0 font-mono tracking-wider uppercase" >
130115 { model .task }
131116 </span >
132117 </div >
133118
134- <p
135- class =" text-muted-foreground mb-4 line-clamp-2 min-h-10 flex-1 text-sm leading-relaxed"
136- >
119+ <p class =" text-muted-foreground mb-4 line-clamp-2 min-h-10 flex-1 text-sm leading-relaxed" >
137120 { model .description }
138121 </p >
139122
0 commit comments