🐛 FIX: img align attribute restored

This commit is contained in:
Somik Datta
2020-08-08 16:09:51 +05:30
parent 00a84a6f8f
commit 1e62c23723
+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 (<>{`<p align="left"><img src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p align="left"><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 (<>{`<p align="center"><img src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p align="left"><img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return (<>{`<p align="left"><img src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
return (<>{`<p align="left"><img align="center" src="${link}" alt="${props.github}" /></p>`}<br /><br /></>);
}
return '';
}