Skip to content

Commit

Permalink
Small fix: move style wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Feb 7, 2023
1 parent f7eafe0 commit 7d169c3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
4 changes: 1 addition & 3 deletions src/components/ItemView/ItemView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ function ItemView(props) {

<MetadataSection item={item} appConfig={appConfig} docid={docid} />

<div className="dataset-container">
<MoreLikeThis docid={docid} title={title?.raw} appConfig={appConfig} />
</div>
<MoreLikeThis docid={docid} title={title?.raw} appConfig={appConfig} />

{/* <div className="info-wrapper">
<div className="info-content">
Expand Down
54 changes: 28 additions & 26 deletions src/components/ItemView/MoreLikeThis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,34 @@ const MoreLikeThis = (props) => {
}, [appConfig, docid, title]);

return similarDocs && similarDocs.length > 0 ? (
<div className="more-like-this">
<h2>Similar content</h2>
<div className="section-wrapper">
<Card.Group itemsPerRow={3}>
{similarDocs.map((item, i) => {
return (
<Card
href={`/en/datahub/datahubitem-view/${item._source.about}`}
key={i}
>
<Card.Content>
<Card.Header>
<span title={item._source.label}>
{firstWords(item._source.label, 10)}
</span>
</Card.Header>
<Card.Description>
<span className="card-description">
{item._source.description}
</span>
</Card.Description>
</Card.Content>
</Card>
);
})}
</Card.Group>
<div className="dataset-container">
<div className="more-like-this">
<h2>Similar content</h2>
<div className="section-wrapper">
<Card.Group itemsPerRow={3}>
{similarDocs.map((item, i) => {
return (
<Card
href={`/en/datahub/datahubitem-view/${item._source.about}`}
key={i}
>
<Card.Content>
<Card.Header>
<span title={item._source.label}>
{firstWords(item._source.label, 10)}
</span>
</Card.Header>
<Card.Description>
<span className="card-description">
{item._source.description}
</span>
</Card.Description>
</Card.Content>
</Card>
);
})}
</Card.Group>
</div>
</div>
</div>
) : null;
Expand Down

0 comments on commit 7d169c3

Please sign in to comment.