Skip to content

Commit

Permalink
slightly more styling on home scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Jan 26, 2024
1 parent 2e236e1 commit 25422ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions web/src/components/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@
background-color: #f9f9f9;
cursor: pointer;
}

.home .scope-links {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.home .scope-link {
padding: 12px;


}
4 changes: 3 additions & 1 deletion web/src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ function Home() {
{datasets.map(dataset => (
<li key={dataset.id}>
<Link to={`/datasets/${dataset.name}/setup`}>Setup {dataset.name}</Link>
<div className="scope-links">
{scopes[dataset.id] && scopes[dataset.id].map && scopes[dataset.id]?.map((scope,i) => (
<div key={i} >
<div className="scope-link" key={i} >
<Link to={`/datasets/${dataset.name}/explore/${scope.id}`}>Explore {scope.name} - {scope.label}<br></br>
<img width="120px" src={`${apiUrl}/files/${dataset.id}/clusters/${scope.cluster}.png`} />
</Link><br></br>
</div>
))}
</div>
</li>
))}
</ul>
Expand Down

0 comments on commit 25422ee

Please sign in to comment.