Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 251c3964bd 1.161.8 2021-02-02 04:08:57 +01:00
DebaucheryLibrarian 1e43c0e4c3 Showing movie cover as banner background. 2021-02-02 04:08:52 +01:00
3 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<Scroll
v-slot="slotProps"
class="scroll-light banner"
:style="{ 'background-image': release.poster && `url(/media/${release.poster.thumbnail})` }"
:style="{ 'background-image': bannerBackground }"
:expandable="false"
>
<Banner
@ -219,6 +219,11 @@ async function fetchRelease() {
}
}
function bannerBackground() {
return (this.release.poster && `url(/media/${this.release.poster.thumbnail})`)
|| (this.release.covers.length > 0 && `url(/media/${this.release.covers[0].thumbnail})`);
}
function pageTitle() {
return this.release
&& (this.release.title
@ -244,6 +249,7 @@ export default {
},
computed: {
pageTitle,
bannerBackground,
},
watch: {
$route: fetchRelease,

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.161.7",
"version": "1.161.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.161.7",
"version": "1.161.8",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {