mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use title for video main heading
This commit is contained in:
parent
428ecb3e43
commit
d9610b18f8
2 changed files with 6 additions and 1 deletions
|
|
@ -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?`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue