|
@@ -56,7 +56,7 @@ export const getIconStyle = async (
|
|
|
) => {
|
|
|
const svgContent = parseSvgContent(await getSvgContent(url));
|
|
|
if (!fixed) {
|
|
|
- if (width / height > svgContent.width / svgContent.height) {
|
|
|
+ if (width / height < svgContent.width / svgContent.height) {
|
|
|
width = (svgContent.width / svgContent.height) * height;
|
|
|
} else {
|
|
|
height = (svgContent.height / svgContent.width) * width;
|