File tree Expand file tree Collapse file tree 1 file changed +18
-12
lines changed
src/features/workspace/components Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -215,19 +215,25 @@ function PromptPresetPicker({ onActivate }: PromptPresetPickerProps) {
215
215
< div className = "flex gap-4 justify-between p-2" >
216
216
< div className = "h-full items-center" >
217
217
< div className = "flex h-full items-center max-w-52 text-clip" >
218
- { item . commiters . map ( ( contributor ) => (
219
- < Link
220
- className = "font-bold text-sm no-underline text-secondary flex gap-1 items-center hover:bg-gray-200 h-full px-2 rounded-md"
221
- target = "_blank"
222
- href = { `https://github.com/${ contributor } /` }
223
- >
224
- < img
225
- className = "size-6 rounded-full"
226
- src = { `https://github.com/${ contributor } .png?size=24` }
227
- />
228
- < span className = "truncate" > { contributor } </ span >
218
+ { item . readme ? (
219
+ < Link target = "_blank" href = { item . readme } >
220
+ README.md
229
221
</ Link >
230
- ) ) }
222
+ ) : (
223
+ item . commiters . map ( ( contributor ) => (
224
+ < Link
225
+ className = "font-bold text-sm no-underline text-secondary flex gap-1 items-center hover:bg-gray-200 h-full px-2 rounded-md"
226
+ target = "_blank"
227
+ href = { `https://github.com/${ contributor } /` }
228
+ >
229
+ < img
230
+ className = "size-6 rounded-full"
231
+ src = { `https://github.com/${ contributor } .png?size=24` }
232
+ />
233
+ < span className = "truncate" > { contributor } </ span >
234
+ </ Link >
235
+ ) )
236
+ ) }
231
237
</ div >
232
238
</ div >
233
239
< Button
You can’t perform that action at this time.
0 commit comments