forked from Kieran/zap.stream
Merge pull request 'fix: add background' (#99) from music into main
Reviewed-on: Kieran/stream#99
This commit is contained in:
commit
6c127d4e9b
@ -117,6 +117,9 @@
|
||||
align-items: center;
|
||||
padding: 16px;
|
||||
gap: 4px;
|
||||
border-radius: 16px;
|
||||
background: #222;
|
||||
max-width: 340px;
|
||||
}
|
||||
|
||||
.music .cover {
|
||||
@ -127,4 +130,5 @@
|
||||
|
||||
.music .track {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ export function Music({ link }: { link: NostrLink }) {
|
||||
const expiry = nowPlaying && findTag(nowPlaying, "expiration");
|
||||
const isExpired = expiry && Number(expiry) > unixNow();
|
||||
return (
|
||||
nowPlaying &&
|
||||
!isExpired && (
|
||||
<div className="music">
|
||||
{cover && <img className="cover" src={cover} alt={nowPlaying.content} />}
|
||||
|
Loading…
Reference in New Issue
Block a user