mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 12:50:20 +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
|
// eslint-disable-next-line @next/next/no-img-element
|
||||||
<img
|
<img
|
||||||
style={{
|
style={{
|
||||||
borderRadius: '1em',
|
borderRadius: isRounded ? '1em' : 0,
|
||||||
marginRight: '0.5rem',
|
marginRight: '0.5rem',
|
||||||
verticalAlign: 'middle',
|
verticalAlign: 'middle',
|
||||||
}}
|
}}
|
||||||
|
@ -216,8 +216,14 @@ const Project = ({ data, components }) => (
|
||||||
{data.spacy_version && <SpaCyVersion version={data.spacy_version} />}
|
{data.spacy_version && <SpaCyVersion version={data.spacy_version} />}
|
||||||
{data.github && (
|
{data.github && (
|
||||||
<Link to={`https://github.com/${data.github}`} hidden>
|
<Link to={`https://github.com/${data.github}`} hidden>
|
||||||
<ImageGitHub url={`release/${data.github}/all.svg?style=flat-square`} />
|
<ImageGitHub
|
||||||
<ImageGitHub url={`license/${data.github}.svg?style=flat-square`} />
|
url={`release/${data.github}/all.svg?style=flat-square`}
|
||||||
|
isRounded
|
||||||
|
/>
|
||||||
|
<ImageGitHub
|
||||||
|
url={`license/${data.github}.svg?style=flat-square`}
|
||||||
|
isRounded
|
||||||
|
/>
|
||||||
<ImageGitHub
|
<ImageGitHub
|
||||||
url={`stars/${data.github}.svg?style=social&label=Stars`}
|
url={`stars/${data.github}.svg?style=social&label=Stars`}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user