[fix]: cards alignment i in mobile view

This commit is contained in:
rahuldkjain
2020-08-08 17:02:30 +05:30
parent 49afc741b2
commit d83629881b
+3 -3
View File
@@ -55,7 +55,7 @@ const Markdown = (props) => {
const GithubStats = (props) => {
let link = "https://github-readme-stats.vercel.app/api?username=" + props.github + "&show_icons=true"
if (props.show) {
return (<>{`<img align="center" src="${link}" alt="${props.github}" />`}<br /><br /></>);
return (<>{`<p>&nbsp;<img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return '';
}
@@ -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 (<>{`<img align="center" src="${link}" alt="${props.github}" />`}<br /><br /></>);
return (<>{`<p><img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return (<>{`<img align="left" src="${link}" alt="${props.github}" />`}<br /><br /></>);
return (<>{`<p><img align="left" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return '';
}