Fixes
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 29s

This commit is contained in:
2026-06-15 23:39:29 +02:00
parent 386c126335
commit de6449d830
3 changed files with 7 additions and 12 deletions

View File

@@ -25,11 +25,6 @@
box-shadow: 4px -4px 0px 0px var(--color-container-shadow); box-shadow: 4px -4px 0px 0px var(--color-container-shadow);
} }
.tui-frame:first-child {
margin-top: 0;
margin-right: 0;
}
.tui-inner { .tui-inner {
padding: 8px 24px; padding: 8px 24px;
color: white; color: white;

View File

@@ -72,9 +72,7 @@ const ART_LIMIT = 6;
const showAll = ref(false); const showAll = ref(false);
const displayedArt = computed(() => { const displayedArt = computed(() => {
const allPosts = posts.value || []; return posts.value || [];
if (showAll.value || allPosts.length <= ART_LIMIT) return allPosts;
return allPosts.slice(0, ART_LIMIT);
}); });
</script> </script>
@@ -83,7 +81,7 @@ const displayedArt = computed(() => {
<TableHeader></TableHeader> <TableHeader></TableHeader>
</div> </div>
<FixedLayout> <FixedLayout>
<Container> <Container class="top-margin">
<h1 class="section-title">{{ t('pages.art_heading') }}</h1> <h1 class="section-title">{{ t('pages.art_heading') }}</h1>
<div class="grid"> <div class="grid">
<NuxtLink v-for="art in displayedArt" <NuxtLink v-for="art in displayedArt"
@@ -103,9 +101,6 @@ const displayedArt = computed(() => {
<div class="overlay-label">{{ art.title }}</div> <div class="overlay-label">{{ art.title }}</div>
</NuxtLink> </NuxtLink>
</div> </div>
<p v-if="posts && posts.length > ART_LIMIT" class="show-more-toggle">
<button type="button" class="tui-link" @click="showAll = !showAll">{{ showAll ? t('pages.show_less') : t('pages.show_more') }}</button>
</p>
</Container> </Container>
</FixedLayout> </FixedLayout>
<Footer></Footer> <Footer></Footer>

View File

@@ -277,6 +277,11 @@ const sectionTargets = {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.tui-frame:first-child {
margin-top: 0;
margin-right: 0;
}
.intro-section { .intro-section {
.intro-layout { .intro-layout {