diff --git a/package.json b/package.json
index cc0ec24b..eef364ef 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "photon-lemmy",
- "version": "1.28.0",
+ "version": "1.28.1",
"private": true,
"scripts": {
"dev": "vite dev",
diff --git a/src/lib/components/ui/layout/Shell.svelte b/src/lib/components/ui/layout/Shell.svelte
index d6493491..696954de 100644
--- a/src/lib/components/ui/layout/Shell.svelte
+++ b/src/lib/components/ui/layout/Shell.svelte
@@ -6,20 +6,14 @@
export let route: { id: string | null } | undefined = undefined
$: title = route ? routes[(route.id as keyof typeof routes) ?? ''] : ''
-
- let scroll = 0
-
-
diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte
index 601f4dce..c1dc32e1 100644
--- a/src/lib/components/ui/sidebar/Sidebar.svelte
+++ b/src/lib/components/ui/sidebar/Sidebar.svelte
@@ -56,7 +56,7 @@
Communities
{#if $profileData.profiles.length >= 1}
-
+
{#each [...$profileData.profiles] as prof, index (prof.id)}
@@ -76,11 +76,11 @@
Accounts
{/if}
-
+
{#if $profile?.user}
{#if $profile?.user.moderates.length > 0}
i.community)} />
-
+
{/if}
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 38a8e5aa..4488280c 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -8,7 +8,12 @@
import Sidebar from '$lib/components/ui/sidebar/Sidebar.svelte'
// @ts-ignore
import { pwaInfo } from 'virtual:pwa-info'
- import { colors, inDarkLegacyTheme, legacyTheme } from '$lib/ui/colors.js'
+ import {
+ colors,
+ colorsToVars,
+ inDarkLegacyTheme,
+ legacyTheme,
+ } from '$lib/ui/colors.js'
import { userSettings } from '$lib/settings.js'
import { Button, ModalContainer, Spinner, ToastContainer } from 'mono-svelte'
import { onMount } from 'svelte'
@@ -61,10 +66,16 @@
}
})
$: title = routes[($page.route.id as keyof typeof routes) ?? '']
+ $: browser ? document.body.setAttribute('style', colorsToVars($colors)) : ''
-
+
{#if $site}
{$site.site_view.site.name}
{#if LINKED_INSTANCE_URL}
diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts
index b6631bcd..0883c153 100644
--- a/src/routes/+layout.ts
+++ b/src/routes/+layout.ts
@@ -1,3 +1,3 @@
import { env } from '$env/dynamic/public'
-export let ssr = (env.PUBLIC_SSR_ENABLED?.toLowerCase() ?? 'false') == 'true'
+export let ssr = (env.PUBLIC_SSR_ENABLED?.toLowerCase() ?? 'false') == 'true'
\ No newline at end of file