[fix]: github cards top margin

This commit is contained in:
rahuldkjain
2020-08-09 13:54:58 +05:30
parent c0323ee341
commit 405b6e7b06
+2 -2
View File
@@ -86,9 +86,9 @@ const Markdown = (props) => {
let link = "https://github-readme-stats.vercel.app/api/top-langs/?username=" + props.github + "&layout=compact&hide=html"
if (props.show) {
if (!props.showStats) {
return (<>{`<p>&nbsp;<img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p><img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return (<>{`<p>&nbsp;<img align="left" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p><img align="left" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return '';
}