[fix]: top margin github cards

This commit is contained in:
rahuldkjain
2020-08-09 09:24:32 +05:30
parent d83629881b
commit afa9e2a322
+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><img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p>&nbsp;<img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return (<>{`<p><img align="left" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p>&nbsp;<img align="left" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return '';
}