diff --git a/src/forge/Component/Component.scss b/src/forge/Component/Component.scss index 7f0d62f7..6dbe53b8 100644 --- a/src/forge/Component/Component.scss +++ b/src/forge/Component/Component.scss @@ -31,6 +31,7 @@ li.ant-menu-item{ overflow: hidden; img{ max-width: 100%; + max-height: 100%; } } .content{ diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js index 0d081f14..7443e8ec 100644 --- a/src/forge/Main/IndexItem.js +++ b/src/forge/Main/IndexItem.js @@ -16,8 +16,9 @@ class IndexItem extends Component { } render() { const { projects } = this.props; - const renderList = ( - projects && projects.length > 0 ? projects.map((item, key) => { + return ( +
+ {projects && projects.length > 0 ? projects.map((item, key) => { return (
{ @@ -70,11 +71,7 @@ class IndexItem extends Component {
) - }) : - ) - return ( -
- {renderList} + }) : }
) }