fix(home):fix misaligned descriptions

This commit is contained in:
Pizzosaure
2023-10-13 10:56:28 +02:00
parent 8bfe293414
commit 1502ac317d
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import React from 'react'
const Icon = ({ icon, size = 1, color, fixedWidth, ...props }) => {
props.className = classNames(
props.className,
icon !== undefined ? `xo-icon-${icon}` : 'fa', // Without icon prop, is a placeholder.
!icon ? 'fa' : `xo-icon-${icon}`, // Misaligned problem modification: if no icon or null, apply 'fa'
isInteger(size) ? `fa-${size}x` : `fa-${size}`,
color,
fixedWidth && 'fa-fw'

View File

@@ -221,4 +221,4 @@ export default class VmItem extends Component {
</div>
)
}
}
}