v3: various minor visual fixes
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 39s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 39s
This commit is contained in:
@@ -22,10 +22,13 @@ interface RichContentCardProps {
|
||||
compact?: boolean;
|
||||
/** Overrides richContent.thumbnailUrl with a custom dump thumbnail, if set. */
|
||||
thumbnailOverrideUrl?: string;
|
||||
/** Link back to the owning dump, surfaced as the global player's title. */
|
||||
dumpHref?: string;
|
||||
}
|
||||
|
||||
export default function RichContentCard(
|
||||
{ richContent, compact = false, thumbnailOverrideUrl }: RichContentCardProps,
|
||||
{ richContent, compact = false, thumbnailOverrideUrl, dumpHref }:
|
||||
RichContentCardProps,
|
||||
) {
|
||||
const { play, current, playing } = useContext(PlayerContext);
|
||||
const thumbnailSrc = thumbnailOverrideUrl ??
|
||||
@@ -52,6 +55,7 @@ export default function RichContentCard(
|
||||
embedUrl: richContent.embedUrl!,
|
||||
title: richContent.title,
|
||||
type: richContent.type,
|
||||
dumpHref,
|
||||
});
|
||||
}}
|
||||
aria-label={isPlaying ? "Pause" : "Play"}
|
||||
@@ -113,6 +117,7 @@ export default function RichContentCard(
|
||||
embedUrl: richContent.embedUrl!,
|
||||
title: richContent.title,
|
||||
type: richContent.type,
|
||||
dumpHref,
|
||||
})}
|
||||
aria-label="Play"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user