spotifyControls: make album of local tracks unclickable (#203)
This commit is contained in:
parent
010523eeac
commit
57f3feba68
1 changed files with 3 additions and 2 deletions
|
@ -293,15 +293,16 @@ function Info({ track }: { track: Track; }) {
|
||||||
{track.album.name && (
|
{track.album.name && (
|
||||||
<Forms.FormText variant="text-sm/normal" className={cl("ellipoverflow")}>
|
<Forms.FormText variant="text-sm/normal" className={cl("ellipoverflow")}>
|
||||||
on
|
on
|
||||||
<a id={cl("album-title")}
|
<Link id={cl("album-title")}
|
||||||
href={`https://open.spotify.com/album/${track.album.id}`}
|
href={`https://open.spotify.com/album/${track.album.id}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className={cl("album")}
|
className={cl("album")}
|
||||||
|
disabled={!track.album.id}
|
||||||
style={{ fontSize: "inherit" }}
|
style={{ fontSize: "inherit" }}
|
||||||
title={track.album.name}
|
title={track.album.name}
|
||||||
>
|
>
|
||||||
{track.album.name}
|
{track.album.name}
|
||||||
</a>
|
</Link>
|
||||||
</Forms.FormText>
|
</Forms.FormText>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue