Skip to content

Commit

Permalink
fix: set image size by width instead of height (marwin1991#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antvirf authored Jun 1, 2023
1 parent 625b8b3 commit 2ffa771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Generator extends Component {

//1. Generate Tech blocks
selectedTech = selectedTech.map((tech) => {
const techBlock = `<img height="${iconSize}" src="${tech.link}" alt="${tech.name}" title="${tech.name}"/>`;
const techBlock = `<img width="${iconSize}" src="${tech.link}" alt="${tech.name}" title="${tech.name}"/>`;
if (includeCode) return `<code>${techBlock}</code>`;
return techBlock;
});
Expand Down

0 comments on commit 2ffa771

Please sign in to comment.