Fix playerbar artist title styles

This commit is contained in:
jeffvli
2022-04-10 20:10:19 -07:00
parent df07a42fdc
commit eb455dffde
2 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
import React, { useEffect, useState, useRef, useMemo } from 'react';
import axios from 'axios';
import { nanoid } from 'nanoid/non-secure';
import { useQueryClient } from 'react-query';
import settings from 'electron-settings';
import { FlexboxGrid, Grid, Row, Col, Whisper, Icon } from 'rsuite';
@@ -313,6 +312,7 @@ const PlayerBar = () => {
height: '23px',
display: 'flex',
alignItems: 'center',
color: '#888e94',
}}
>
<span
@@ -324,7 +324,7 @@ const PlayerBar = () => {
>
{playQueue.current?.artist.length > 0 ? (
playQueue.current?.artist?.map((artist: Artist, i: number) => (
<React.Fragment key={nanoid()}>
<React.Fragment key={artist.id}>
<SecondaryTextWrapper subtitle="true">
{i > 0 && <>{', '}</>}
</SecondaryTextWrapper>
@@ -336,7 +336,6 @@ const PlayerBar = () => {
<LinkButton
tabIndex={0}
subtitle="true"
disabled={false}
onClick={() => {
if (artist?.id) {
history.push(`/library/artist/${artist?.id}`);

View File

@@ -1,4 +1,4 @@
import { Button, Icon, Slider } from 'rsuite';
import { Icon, Slider } from 'rsuite';
import styled from 'styled-components';
export const PlayerContainer = styled.div`
@@ -69,7 +69,7 @@ export const CoverArtContainer = styled.div<{ expand: boolean }>`
}
`;
export const LinkButton = styled(Button)<{ subtitle?: string }>`
export const LinkButton = styled.a<{ playing?: string; subtitle?: string }>`
border-radius: 0px;
background: transparent;
max-width: 100%;