img-siaze

This commit is contained in:
caishi 2021-02-07 16:50:14 +08:00
parent 658fd1b4f9
commit b4a608bcc3
2 changed files with 5 additions and 7 deletions

View File

@ -31,6 +31,7 @@ li.ant-menu-item{
overflow: hidden; overflow: hidden;
img{ img{
max-width: 100%; max-width: 100%;
max-height: 100%;
} }
} }
.content{ .content{

View File

@ -16,8 +16,9 @@ class IndexItem extends Component {
} }
render() { render() {
const { projects } = this.props; const { projects } = this.props;
const renderList = ( return (
projects && projects.length > 0 ? projects.map((item, key) => { <div className="project-list minH-670">
{projects && projects.length > 0 ? projects.map((item, key) => {
return ( return (
<div className="p-r-Item" key={key}> <div className="p-r-Item" key={key}>
{ {
@ -70,11 +71,7 @@ class IndexItem extends Component {
</div> </div>
</div> </div>
) )
}) : <Nodata _html="暂无数据~"></Nodata> }) : <Nodata _html="暂无数据~"></Nodata>}
)
return (
<div className="project-list minH-670">
{renderList}
</div> </div>
) )
} }