Skip to content

Commit

Permalink
fix: layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Apr 17, 2024
1 parent b1ce1ae commit a510c8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/sections/collection/Collection.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
margin-bottom: $spacer;
}

.infoContainer {
display: flex;
gap: 10px;
}

.subtext {
margin-right: 5px;
color: $dv-subtext-color;
}
14 changes: 8 additions & 6 deletions src/sections/collection/CollectionInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export function CollectionInfo({ collection }: CollectionInfoProps) {
<>
<header className={styles.header}>
<h1>{collection.name}</h1>
{collection.affiliation && (
<span className={styles.subtext}>({collection.affiliation})</span>
)}
{!collection.isReleased && (
<Badge variant={DatasetLabelSemanticMeaning.WARNING}>Unpublished</Badge>
)}
<div className={styles.infoContainer}>
{collection.affiliation && (
<span className={styles.subtext}>({collection.affiliation})</span>
)}
{!collection.isReleased && (
<Badge variant={DatasetLabelSemanticMeaning.WARNING}>Unpublished</Badge>
)}
</div>
</header>
{collection.description && (
<div>
Expand Down

0 comments on commit a510c8f

Please sign in to comment.