Use title for video main heading

This commit is contained in:
Sam Carlton 2022-06-09 14:53:40 -05:00
parent 428ecb3e43
commit d9610b18f8
2 changed files with 6 additions and 1 deletions

View file

@ -96,6 +96,11 @@ export class ListingDetails {
isListingDetails = true
get mainHeading () {
// Use the video title for videos
if ( this.type === 'video' ) {
return this.api.name
}
if ( this.type === 'formula' ) {
return `Does <code>${ this.api.name }</code> work on Apple Silicon when installed via Homebrew?`
}

View file

@ -28,7 +28,7 @@ const details = ensureListingDetails( listing )
slot="cover-bottom"
class="page-heading h-full flex items-end md:p-4"
>
<h1 class="title text-xs text-left md:text-2xl font-bold">{ details.initialVideo.name }</h1>
<h1 class="title text-xs text-left md:text-2xl font-bold">{ details.mainHeading }</h1>
</div>
</HtmlPlayer>