fix: use pageheader where needed

This commit is contained in:
Xylight committed 2024-07-27 13:14:26 -07:00
1 parent 7c66fea335
commit 1ab3f404cc
28 files changed
+132 -135

No files matched your search

@@ -1,16 +1,23 @@
<script lang="ts">
import { userSettings } from '$lib/settings'
import { contentPadding } from '../Shell.svelte'
export let pageHeader = false
</script>
<div
class="
w-[calc(100%+2rem)]
sm:w-[calc(100%+3rem)]
{pageHeader
? `w-[calc(100%+2rem)] sm:w-[calc(100%+3rem)]
bg-slate-50 dark:bg-zinc-950 -m-4 sm:-m-6 mb-0 sm:mb-0 sm:p-6 p-4
border-b border-slate-200 dark:border-zinc-800"
style="margin-top: min(-1.5rem, calc(-1 * calc({$contentPadding.top}px)));
padding-top: max(1.5rem, calc({$contentPadding.top}px));"
border-b border-slate-200 dark:border-zinc-800`
: ''}
"
style="{pageHeader
? `margin-top: min(-1.5rem, calc(-1 * calc(${$contentPadding.top}px))); padding-top: max(1.5rem, calc(${$contentPadding.top}px));`
: ''};
"
>
<h1
class="text-3xl font-bold flex items-center gap-2 w-full