Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from ajai-sandy/fix/label-wrap
Browse files Browse the repository at this point in the history
fix: wrapped labels in related project section
  • Loading branch information
atulsuresh authored Jan 5, 2021
2 parents cd0883d + d7819ca commit 69b16e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/RepoBlock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const RepoBlock = (props) => {
<div className=' px-4 py-4 border-b border-gray-300'>
<h2 className="flex items-center"><GoRepo /> <span className='ml-2 mr-2'>{props.organisation}</span> / <span className="ml-2 font-semibold">{props.name}</span></h2>
{ props.githubInfo ? <div>
<div className="flex">
<div className="flex-wrap">
{ props.githubInfo.languages ? <>
{ Object.keys(props.githubInfo.languages).map((la) => (
<div className="px-2 py-1 bg-blue-100 text-blue-600 text-xs mt-3 rounded mr-2">{la}</div>
<div className="px-2 py-1 bg-blue-100 text-blue-600 text-xs mt-3 rounded mr-2 inline-block">{la}</div>
)) } </> : <div className="px-2 py-1 bg-blue-100 text-blue-600 text-xs mt-3 rounded">{props.githubInfo.language}</div>
}

Expand Down

0 comments on commit 69b16e8

Please sign in to comment.