mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-03 11:50:19 +03:00
Remove rounded border form GitHub Stars badge
This commit is contained in:
parent
a2d554aa14
commit
8384ff3d6d
|
@ -195,11 +195,11 @@ const SpaCyVersion = ({ version }) => {
|
|||
))
|
||||
}
|
||||
|
||||
const ImageGitHub = ({ url }) => (
|
||||
const ImageGitHub = ({ url, isRounded }) => (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img
|
||||
style={{
|
||||
borderRadius: '1em',
|
||||
borderRadius: isRounded ? '1em' : 0,
|
||||
marginRight: '0.5rem',
|
||||
verticalAlign: 'middle',
|
||||
}}
|
||||
|
@ -216,8 +216,14 @@ const Project = ({ data, components }) => (
|
|||
{data.spacy_version && <SpaCyVersion version={data.spacy_version} />}
|
||||
{data.github && (
|
||||
<Link to={`https://github.com/${data.github}`} hidden>
|
||||
<ImageGitHub url={`release/${data.github}/all.svg?style=flat-square`} />
|
||||
<ImageGitHub url={`license/${data.github}.svg?style=flat-square`} />
|
||||
<ImageGitHub
|
||||
url={`release/${data.github}/all.svg?style=flat-square`}
|
||||
isRounded
|
||||
/>
|
||||
<ImageGitHub
|
||||
url={`license/${data.github}.svg?style=flat-square`}
|
||||
isRounded
|
||||
/>
|
||||
<ImageGitHub
|
||||
url={`stars/${data.github}.svg?style=social&label=Stars`}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user