spotifyControls: make album of local tracks unclickable (#203)

This commit is contained in:
Jānis 2022-11-10 20:33:00 +02:00 committed by GitHub
parent 010523eeac
commit 57f3feba68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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&nbsp; on&nbsp;
<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>