Wrote a badge list page

This commit is contained in:
2019-06-08 17:10:33 +10:00
parent 9a42ef54f3
commit 562fae3871
12 changed files with 152 additions and 16 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class Badge extends React.Component {
let realSize = typeof(this.props.size) === 'number' ? this.props.number : this.parseSize(this.props.size);
return (
<img {...this.props} src={`/img/badges/${this.props.filename}`} alt={this.props.name} width={realSize} height={realSize} />
<img {...this.props} src={`/img/badges/${this.props.filename}`} alt={this.props.name} width={realSize} height={realSize} style={{ minWidth: realSize, minHeight: realSize }} />
);
}