Improved scene page poster and album scaling.

This commit is contained in:
DebaucheryLibrarian 2024-03-19 21:38:08 +01:00
parent 69a571e652
commit 9b50b53df6
4 changed files with 14 additions and 11 deletions

View File

@ -14,7 +14,7 @@ body,
body { body {
margin: 0; margin: 0;
color: var(--text); color: var(--text);
font-family: sans-serif; font-family: Arial, Helvetica, sans-serif;
} }
.link { .link {

View File

@ -246,12 +246,12 @@ async function unstash() {
.banner-container { .banner-container {
background-position: center; background-position: center;
background-size: cover; background-size: cover;
border-radius: .5rem .5rem 0 0; border-radius: .25rem .5rem 0 0;
margin-top: .5rem; margin-top: .5rem;
} }
.banner { .banner {
max-height: 18rem; max-height: 21rem;
border-radius: .5rem .5rem 0 0; border-radius: .5rem .5rem 0 0;
display: flex; display: flex;
font-size: 0; font-size: 0;
@ -260,16 +260,14 @@ async function unstash() {
} }
.poster-container { .poster-container {
flex-shrink: 0;
padding: .5rem; padding: .5rem;
max-height: 18rem;
} }
.poster { .poster {
height: auto; height: 100%;
max-height: 100%; width: 100%;
width: auto; border-radius: .25rem;
max-width: 100%;
border-radius: .5rem;
} }
.poster, .poster,
@ -465,6 +463,7 @@ async function unstash() {
.poster-container { .poster-container {
padding: 0; padding: 0;
border-radius: 0; border-radius: 0;
flex-shrink: 1;
} }
.poster { .poster {

View File

@ -27,7 +27,7 @@
<h3 <h3
:id="category" :id="category"
class="category-heading" class="category-heading"
>{{ category }}</h3> >{{ categoryTitles[category] || category }}</h3>
<ul <ul
class="tags nolist" class="tags nolist"
@ -87,6 +87,10 @@ const showcase = pageContext.pageProps.tagShowcase;
const categories = ref(null); const categories = ref(null);
const content = ref(null); const content = ref(null);
const categoryTitles = {
lgbt: 'LGBT',
};
const activeCategory = ref(null); const activeCategory = ref(null);
function calculateActiveCategory() { function calculateActiveCategory() {

View File

@ -31,7 +31,7 @@ const tagSlugs = {
'tattoos', 'tattoos',
'piercings', 'piercings',
], ],
sexuality: [ lgbt: [
'gay', 'gay',
'bisexual', 'bisexual',
'transsexual', 'transsexual',