0
當我渲染這個組件時,沒有包裝'div'標籤,UI工作正常。如何讓這些卡組件完全覆蓋空白空間?
Hoop.js
return connectDropTarget(
<div className="column"> <--works fine if I take this guy out
<Card >
<Image src={basketball_hoop}/>
<Card.Content>
<Card.Header>
Matthew
</Card.Header>
<Card.Meta>
<span className='date'>
Joined in 2015
</span>
</Card.Meta>
<Card.Description>
Matthew is a musician living in Nashville.
</Card.Description>
</Card.Content>
<Card.Content extra>
<a>
<Icon name='user'/>
22 Friends
</a>
</Card.Content>
</Card>
</div>
);
然而,爲了使用,以恢復由於某種原因發生反應拖動和拖放我不得不把它包在一個「格」。當我應用div標籤時,它縮小到原始尺寸的75%。
^組件的名稱是Hoop。你可以在這裏看到它。
ParentOfHoop.js
return (
<div className="ui equal width grid">
<Card.Group className="equal width row">
<Hoop isOver=""/>
<Hoop isOver=""/>
<Hoop isOver=""/>
</Card.Group>
</div>
);
我該怎麼做才能讓Hoop完全填滿它的父div?我正在使用Semantic UI的網格佈局。
編輯:你可以在這裏看到整個組件系統 - >https://github.com/ammark47/PersonalWebsite/tree/master/src/components
你可以在這裏粘貼列類的CSS嗎? – chemitaxis