fix collection link

This commit is contained in:
zeppi 2022-04-25 09:23:21 -04:00 committed by jessopb
parent fe2af64b90
commit 9386cc678f
2 changed files with 12 additions and 15 deletions

View file

@ -10,7 +10,6 @@ import Card from 'component/common/card';
import Button from 'component/button';
import * as PAGES from 'constants/pages';
import * as COLLECTIONS_CONSTS from 'constants/collections';
import Icon from 'component/common/icon';
import * as ICONS from 'constants/icons';
type Props = {
@ -61,19 +60,17 @@ export default function CollectionContent(props: Props) {
className="file-page__playlist-collection"
title={
<>
<a href={`/$/${PAGES.LIST}/${id}`}>
<span className="file-page__playlist-collection__row">
<Icon
<Button
button="link"
className="file-page__playlist-collection__row"
navigate={`/$/${PAGES.LIST}/${id}`}
icon={
(id === COLLECTIONS_CONSTS.WATCH_LATER_ID && ICONS.TIME) ||
(id === COLLECTIONS_CONSTS.FAVORITES_ID && ICONS.STAR) ||
ICONS.STACK
}
className="icon--margin-right"
label={collectionName}
/>
{collectionName}
</span>
</a>
<span className="file-page__playlist-collection__row">
<Button
button="alt"

View file

@ -332,7 +332,7 @@ body {
&:nth-child(2) {
display: flex;
margin-top: calc(var(--spacing-m) * -1 - 10px);
//margin-top: calc(var(--spacing-m) * -1 - 10px);
.button {
flex: auto;
.button__content {