Skip to content

Commit

Permalink
fix: hotfix landing height
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 20, 2024
1 parent c99875e commit 3b689b2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
28 changes: 18 additions & 10 deletions layers/core/app/layouts/docs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ const navigation = inject<Ref<NavItem[]>>('navigation')
</script>

<template>
<UContainer>
<UPage>
<template #left>
<UAside>
<UNavigationTree :links="mapContentNavigation(navigation)" />
</UAside>
</template>
<slot />
</UPage>
</UContainer>
<UMain>
<UContainer>
<UPage>
<template #left>
<UAside>
<UNavigationTree :links="mapContentNavigation(navigation)" />
</UAside>
</template>
<slot />
</UPage>
</UContainer>
</UMain>
</template>

<style>
main {
min-height: calc(100vh - var(--header-height) * 2 - 1em) !important;
}
</style>
28 changes: 13 additions & 15 deletions layers/core/app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,19 @@ const hero = computed(() => {
</script>

<template>
<div>
<ULandingHero v-if="hero" v-bind="hero">
<template #title>
<MDC :value="hero.title" />
</template>
<ULandingHero v-if="hero" v-bind="hero">
<template #title>
<MDC :value="hero.title" />
</template>

<MDC v-if="hero.code" :value="hero.code" tag="pre" class="prose prose-primary dark:prose-invert mx-auto" />
</ULandingHero>
<MDC v-if="hero.code" :value="hero.code" tag="pre" class="prose prose-primary dark:prose-invert mx-auto" />
</ULandingHero>

<template v-if="page.features">
<ULandingSection :title="page.featuresTitle">
<UPageGrid>
<ULandingCard v-for="(item, index) of page.features" :key="index" v-bind="item" />
</UPageGrid>
</ULandingSection>
</template>
</div>
<template v-if="page.features?.length > 0">
<ULandingSection :title="page.featuresTitle">
<UPageGrid>
<ULandingCard v-for="(item, index) of page.features" :key="index" v-bind="item" />
</UPageGrid>
</ULandingSection>
</template>
</template>

0 comments on commit 3b689b2

Please sign in to comment.