Playlist style fixes #6509

Merged
saltrafael merged 2 commits from playlist_fixes into master 2021-07-16 21:13:29 +02:00
5 changed files with 17 additions and 3 deletions

View file

@ -35,10 +35,10 @@ export default function CollectionContent(props: Props) {
</span>
}
titleActions={
<>
<div className="card__title-actions--link">
{/* TODO: BUTTON TO SAVE COLLECTION - Probably save/copy modal */}
<Button label={'View List'} button="link" navigate={`/$/${PAGES.LIST}/${id}`} />
</>
</div>
}
body={<ClaimList isCardBody type="small" uris={collectionUrls} collectionId={id} empty={__('List is Empty')} />}
/>

View file

@ -103,7 +103,7 @@ export default function CollectionPage(props: Props) {
const subTitle = (
<div>
{uri ? <span>{collectionCount} items</span> : <span>{collectionCount} items</span>}
<span className="collection__subtitle">{collectionCount} items</span>
{uri && <ClaimAuthor uri={uri} />}
</div>
);

View file

@ -226,6 +226,11 @@
}
}
.card__title-actions--link {
margin-top: var(--spacing-xs);
margin-right: var(--spacing-xs);
}
.card__title-actions--small {
padding: 0;
}

View file

@ -242,6 +242,10 @@
justify-content: space-between;
flex-wrap: wrap;
align-items: center;
.claim-preview__actions {
margin-left: var(--spacing-m);
}
}
@media (max-width: $breakpoint-xsmall) {

View file

@ -4,6 +4,11 @@
position: relative;
}
.collection__subtitle {
display: flex;
margin-bottom: var(--spacing-s);
}
.collection-preview__items {
display: flex;
align-items: center;