From 471ffd360e8ee616a10acf03e61a1562754ff1a2 Mon Sep 17 00:00:00 2001 From: Xylight Date: Wed, 10 Jul 2024 12:19:33 -0700 Subject: [PATCH] misc: use satoshi for headers --- src/lib/components/lemmy/post/PostForm.svelte | 5 +++-- src/lib/components/ui/layout/pages/Header.svelte | 11 ++++++++++- src/routes/create/post/+page.svelte | 3 ++- src/routes/settings/+page.svelte | 5 +++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/lib/components/lemmy/post/PostForm.svelte b/src/lib/components/lemmy/post/PostForm.svelte index cea4c66c..e4b8c2e7 100644 --- a/src/lib/components/lemmy/post/PostForm.svelte +++ b/src/lib/components/lemmy/post/PostForm.svelte @@ -23,6 +23,7 @@ import { t } from '$lib/translations' import { slide } from 'svelte/transition' import { feature } from '$lib/version' + import Header from '$lib/components/ui/layout/pages/Header.svelte' export let edit = false @@ -228,9 +229,9 @@
-

+
{edit ? $t('form.post.edit') : $t('form.post.create')} -

+
{#if !edit && data} {#if !data.community} diff --git a/src/lib/components/ui/layout/pages/Header.svelte b/src/lib/components/ui/layout/pages/Header.svelte index 77a50897..3d015745 100644 --- a/src/lib/components/ui/layout/pages/Header.svelte +++ b/src/lib/components/ui/layout/pages/Header.svelte @@ -1,3 +1,12 @@ -

+ + +

diff --git a/src/routes/create/post/+page.svelte b/src/routes/create/post/+page.svelte index d48337ba..6cd651d1 100644 --- a/src/routes/create/post/+page.svelte +++ b/src/routes/create/post/+page.svelte @@ -5,6 +5,7 @@ import { onDestroy, onMount } from 'svelte' import { getSessionStorage, setSessionStorage } from '$lib/session.js' import { t } from '$lib/translations.js' + import Header from '$lib/components/ui/layout/pages/Header.svelte' export let data = { crosspost: false, @@ -47,6 +48,6 @@ passedCommunity={community} on:submit={(e) => goto(`/post/${e.detail.post.id}`)} > -

Create Post

+
Create Post
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index d240fcb4..98f326f9 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -42,6 +42,7 @@ import ToggleSetting from './ToggleSetting.svelte' import { locale, locales, t } from '$lib/translations' import { defaultLinks, iconOfLink } from '$lib/components/ui/navbar/link' + import Header from '$lib/components/ui/layout/pages/Header.svelte' let pin: string = '' let importing = false @@ -79,7 +80,7 @@ {/if} -

+
{$t('settings.title')}
-

+