Skip to content

Commit

Permalink
minor home page changes. show scope description
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Feb 14, 2024
1 parent 1c927fd commit 523d4fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions web/src/components/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
width: 240px;
margin: 6px 0;
}
.home .scope-description {
display: inline-block;
max-width: 240px;
}

@media (prefers-color-scheme: dark) {
.home label[for="upload-button"] {
Expand Down
7 changes: 5 additions & 2 deletions web/src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Home() {
<h3>Create new dataset</h3>
<form onSubmit={handleNewDataset} onDragOver={handleDragOver} onDrop={handleDrop}>
<label htmlFor="upload-button">
<span>Import a CSV, Parquet or JSONL file to create a new dataset</span>
<span>Import a CSV or Parquet file to create a new dataset</span>
</label>
<input
hidden
Expand Down Expand Up @@ -127,7 +127,10 @@ function Home() {
<div className="scope-link" key={i} >
<Link to={`/datasets/${dataset.id}/explore/${scope.id}`}>{scope.label || scope.id}<br/>
<img src={`${apiUrl}/files/${dataset.id}/clusters/${scope.cluster_id}.png`} />
</Link><br></br>
</Link>
<br/>
<span className="scope-description">{scope.description}</span>
<br/>
{readonly ? null : <Link to={`/datasets/${dataset.id}/setup/${scope.id}`}>Configure</Link> }
</div>
))}
Expand Down

0 comments on commit 523d4fe

Please sign in to comment.