Skip to content

Commit

Permalink
ensure people badges below project tiles are always square aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
shrey150 committed Dec 25, 2024
1 parent b3f5b0e commit cc4b11a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions components/projects/ProjectTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ export default function ProjectTile({ project }: { project: Project }) {
{imagesQuery?.data &&
Object.entries(imagesQuery?.data).map(
([key, value]: [string, string]) => (
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] overflow-hidden">
<img className="w-full block" src={value} alt="temp" />
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] h-[30px] overflow-hidden">
<img
className="w-full h-full object-cover"
src={value}
alt="temp"
/>
</span>
)
)}
Expand Down
8 changes: 6 additions & 2 deletions components/startups/StartupTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,12 @@ export default function StartupTile({ startup }: { startup: Startup }) {
{imagesQuery?.data &&
Object.entries(imagesQuery?.data).map(
([key, value]: [string, string]) => (
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] overflow-hidden">
<img className="w-full block" src={value} alt="temp" />
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] h-[30px] overflow-hidden">
<img
className="w-full h-full object-cover"
src={value}
alt="temp"
/>
</span>
)
)}
Expand Down

0 comments on commit cc4b11a

Please sign in to comment.