Skip to content

Commit

Permalink
feat(DatasetCard): adjust skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Dec 1, 2023
1 parent 5e3b47c commit ad4f308
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class DatasetJSDataverseRepository implements DatasetRepository {
// TODO - Implement using the js-dataverse-client
return new Promise((resolve) => {
setTimeout(() => {
resolve(DatasetPreviewMother.createMany(200))
resolve(DatasetPreviewMother.createMany(10))
}, 1000)
})
}
Expand Down
6 changes: 5 additions & 1 deletion src/sections/home/datasets-list/DatasetCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@

.thumbnail {
width: 48px;
margin: 4px 12px 6px 0;
margin: 8px 12px 6px 0;
font-size: 2.8em;

img {
vertical-align: top;
}
}

.info {
Expand Down
20 changes: 10 additions & 10 deletions src/sections/home/datasets-list/DatasetsListSkeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export function DatasetsListSkeleton() {
<Skeleton width="14%" />
</div>
<article>
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton width="50%" />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
<Skeleton height="109px" style={{ marginBottom: 6 }} />
</article>
</section>
</SkeletonTheme>
Expand Down

0 comments on commit ad4f308

Please sign in to comment.