From ceb7ea4ddf55f0ff3dfcca0c08f7db335d21675f Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 17 Aug 2024 17:40:57 -0700 Subject: [PATCH 1/3] design: blur the profile picture and use as background for nav --- src/lib/components/ui/navbar/Navbar.svelte | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/lib/components/ui/navbar/Navbar.svelte b/src/lib/components/ui/navbar/Navbar.svelte index bd56a4e9..4ec7c8a2 100644 --- a/src/lib/components/ui/navbar/Navbar.svelte +++ b/src/lib/components/ui/navbar/Navbar.svelte @@ -35,6 +35,7 @@ import { LINKED_INSTANCE_URL } from '$lib/instance' import { t } from '$lib/translations' import CommandsWrapper from './commands/CommandsWrapper.svelte' + import { optimizeImageURL } from '$lib/components/lemmy/post/helpers' let searching = false let promptOpen: boolean = false @@ -181,12 +182,19 @@ {/if} - +
+ +
+ From 1f0165a78c2844f9dae2f65ab1347940f2c8dabc Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 17 Aug 2024 17:43:39 -0700 Subject: [PATCH 2/3] fix: blur is rounded incorrectly --- src/lib/components/ui/navbar/Navbar.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/ui/navbar/Navbar.svelte b/src/lib/components/ui/navbar/Navbar.svelte index 4ec7c8a2..6048c3a5 100644 --- a/src/lib/components/ui/navbar/Navbar.svelte +++ b/src/lib/components/ui/navbar/Navbar.svelte @@ -110,7 +110,8 @@ {/if}
{#if $profile?.user && isAdmin($profile.user)} @@ -184,7 +185,8 @@
Date: Sun, 18 Aug 2024 14:40:02 -0700 Subject: [PATCH 3/3] fix: tweak profile blur --- src/lib/components/ui/navbar/Navbar.svelte | 30 ++++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/lib/components/ui/navbar/Navbar.svelte b/src/lib/components/ui/navbar/Navbar.svelte index 6048c3a5..79e8d9e7 100644 --- a/src/lib/components/ui/navbar/Navbar.svelte +++ b/src/lib/components/ui/navbar/Navbar.svelte @@ -183,20 +183,22 @@ {/if} -
- -
+ {#if $profile?.user?.local_user_view.person.avatar} +
+ +
+ {/if}