Skip to content

Commit

Permalink
The author of Rye was unhappy with our gen’d img
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 25, 2024
1 parent 1564745 commit 5cce56d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pkgx.dev/PackageListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,12 @@ function Package({ project, dirs }: { project: string, dirs: string[] }) {
<Button variant='outlined' href={description.value.github} target='_blank' rel='noreferrer' endIcon={<ArrowOutwardIcon />}>GitHub</Button>
</>

// the author of rye is strangely hostile to our project
const imgsrc = project == 'rye-up.com' ? undefined : `https://gui.tea.xyz/prod/${project}/1024x1024.webp`

return <Stack direction={{xs: "column", md: "row"}} spacing={4}>
<Card sx={{height: 'fit-content', minWidth: 375}}>
<img style={{display: 'block'}} src={`https://gui.tea.xyz/prod/${project}/1024x1024.webp`} width={375} height={375} />
<img style={{display: 'block'}} src={imgsrc} width={375} height={375} />
</Card>
<Stack spacing={2}>
<Box>
Expand Down

0 comments on commit 5cce56d

Please sign in to comment.