Rework page spacing for mobile
This commit is contained in:
parent
4efc0afffb
commit
c091a6d261
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<h1 :id="parseId(id)" class="text-5xl font-thin mt-3 mb-8 first:pt-0 pt-2 relative right-8">
|
||||
<h1 :id="parseId(id)" class="text-5xl font-thin mt-3 mb-8 first:pt-0 pt-2 relative sm:right-8 right-4">
|
||||
<slot />
|
||||
</h1>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<h2 :id="parseId(id)" class="text-4xl font-semibold mt-3 mb-6 ms-1 first:pt-0 pt-2 relative right-8">
|
||||
<h2 :id="parseId(id)" class="text-4xl font-semibold mt-3 mb-6 ms-1 first:pt-0 pt-2 relative sm:right-8 right-4">
|
||||
<slot />
|
||||
</h2>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function toggleNavigation(bool?: boolean)
|
|||
<p>Copyright Peaceultime - 2024</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1 flex items-baseline overflow-auto p-8 relative">
|
||||
<div class="flex-1 flex items-baseline overflow-auto py-8 sm:px-8 px-4 relative">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ definePageMeta({
|
|||
</Head>
|
||||
<div class="flex-1 flex overflow-hidden">
|
||||
<template v-if="!!content && content[0] && content[0].type == 'Markdown' && !!content[0].content">
|
||||
<div class="md:px-24 ps-8 my-1">
|
||||
<div class="md:px-24 ps-8 my-1 whitespace-break-spaces">
|
||||
<ProseH1>{{ content[0].title }}</ProseH1>
|
||||
<Markdown v-model="content[0].content"></Markdown>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue