Ich benutze React-Bootstrap für Resposinve Grid-Layout und Material-Ui für Komponente. Ich möchte 3 Elemente pro Zeile anzeigen und meine erste Zeile funktioniert wie erwartet, aber die nächste Zeile verhält sich abnormal. Warum ist das so? Hier ist mein Codebootstrap grid items werden nicht korrekt dargestellt
const Content = ({restaurant}) => {
const restaura = _.map(restaurant, (restaurant) => {
return(
<Col xs={12} sm={12} md={4}>
<div className="card">
<div className="card-image waves-effect waves-block waves-light">
<Link to={"restaurant/" + restaurant.slug}> {restaurant.image ?
<img src={restaurant.image} alt={restaurant.name} className="activator responsive-img"/>
:<img className="activator" src="" />}
</Link>
</div>
<div className="card-content">
<Link to={"restaurant/" + restaurant.slug}><span className="card-title activator grey-text text-darken-4">{restaurant.name}</span></Link>
</div>
</div>
</Col>
);
});
return(
<div className="container-fluid">
<div className="row">
<h3 className="flow-text">Collections</h3>
</div>
<div>
<Grid>
<Row className="restaura show-grid">
{restaura}
</Row>
</Grid>
</div>
</div>
);
}
Derzeit sieht es so aus angehängtem Bild
Ja, es hat wirklich funktioniert. Danke vielmals. – Serenity