Skip to content

Commit

Permalink
Remove absolute positioning from the body
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobefu committed Apr 27, 2024
1 parent 0cbf403 commit 00c53b3
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 32 deletions.
102 changes: 80 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/base/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ useHead({
htmlAttrs: {
lang: i18nHead.value.htmlAttrs!.lang,
dir: i18nHead.value.htmlAttrs!.dir,
class: 'h-full',
},
bodyAttrs: {
class: 'absolute inset-0 flex flex-col',
class: 'min-h-full flex flex-col',
},
meta: [
...(i18nHead.value.meta || []),
Expand Down
2 changes: 1 addition & 1 deletion frontend/base/components/base/BasePageLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const layout = computed<LayoutSection[]>(() => {
<div
v-for="sections in layout"
:key="sections.id"
class="flex flex-wrap"
class="flex flex-wrap gap-8"
>
<div
v-for="(section, section_name) in sections.children"
Expand Down
8 changes: 0 additions & 8 deletions frontend/base/layouts/preview.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<script setup lang="ts">
useHead({
bodyAttrs: {
class: '!static',
},
})
</script>

<template>
<div class="flex flex-col justify-between flex-1 gap-8 px-4 pb-8 md:px-8">
<main
Expand Down

0 comments on commit 00c53b3

Please sign in to comment.