Improved appearence of empty scene media banner.

This commit is contained in:
DebaucheryLibrarian 2021-01-23 23:26:56 +01:00
parent fdb48f0d6d
commit 0a0a3ddd7b
3 changed files with 105 additions and 92 deletions

View File

@ -1,4 +1,5 @@
<template> <template>
<div class="media-container">
<div <div
class="media" class="media"
:class="{ center: release.photos.length < 2 }" :class="{ center: release.photos.length < 2 }"
@ -105,6 +106,7 @@
</a> </a>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
@ -163,6 +165,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'breakpoints'; @import 'breakpoints';
.media-container {
backdrop-filter: blur(1rem);
}
.media { .media {
flex-shrink: 0; flex-shrink: 0;
white-space: nowrap; white-space: nowrap;
@ -171,6 +177,7 @@ export default {
.media.center { .media.center {
width: 1200px; width: 1200px;
max-width: 100%;
margin: 0 auto; margin: 0 auto;
} }

View File

@ -5,7 +5,8 @@
> >
<Scroll <Scroll
v-slot="slotProps" v-slot="slotProps"
class="scroll-light" class="scroll-light banner"
:style="{ 'background-image': `url(/media/${release.poster.thumbnail})` }"
:expandable="false" :expandable="false"
> >
<Banner <Banner
@ -259,6 +260,11 @@ export default {
border-bottom: solid 1px var(--shadow-hint); border-bottom: solid 1px var(--shadow-hint);
} }
.banner {
background-position: center;
background-size: cover;
}
.info { .info {
padding: 1rem; padding: 1rem;
border-left: solid 1px var(--shadow-hint); border-left: solid 1px var(--shadow-hint);

View File

@ -24,7 +24,7 @@
<div <div
ref="content" ref="content"
class="content" class="scroll-content"
> >
<slot :loaded="loaded" /> <slot :loaded="loaded" />
</div> </div>
@ -145,7 +145,7 @@ export default {
position: relative; position: relative;
} }
.content { .scroll-content {
overflow-x: scroll; overflow-x: scroll;
scroll-behavior: smooth; scroll-behavior: smooth;
scrollbar-width: none; scrollbar-width: none;