diff options
| author | Adam Soltys <[email protected]> | 2022-09-24 09:03:38 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-24 09:05:39 -0700 |
| commit | 18dc54c1e75f848e7a71020573283d4347b66836 (patch) | |
| tree | 7fb7e317aadc9374721a7a853212d5d6c0fa0190 /src/components | |
| parent | d334bbade720864649a23b8dab022cb07058684b (diff) | |
| download | coinos-ui-18dc54c1e75f848e7a71020573283d4347b66836.tar.gz coinos-ui-18dc54c1e75f848e7a71020573283d4347b66836.zip | |
fix public pages
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/AppHeader.svelte | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 1ac72f87..04426bd3 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -1,6 +1,6 @@ <script> import OutClick from 'svelte-outclick'; - import { user, newPayment, colorTheme, tempProfileFiles } from '$lib/store'; + import { subject, user, newPayment, colorTheme, tempProfileFiles } from '$lib/store'; import { goto } from '$app/navigation'; import { Icon } from '$comp'; import { t } from '$lib/translations'; @@ -29,8 +29,8 @@ $: background = $tempProfileFiles && $tempProfileFiles.banner ? `url(${$tempProfileFiles.banner})` - : $user?.banner - ? `url(/api/public/${$user.username}-banner.png)` + : $subject?.banner + ? `url(/api/public/${$subject.username}-banner.png)` : undefined; </script> @@ -114,14 +114,14 @@ </a> {/if} </nav> - {#if $user.profile} + {#if $subject?.profile} <div class="absolute {avatarPosition} rounded-full overflow-hidden text-center w-24 h-24 my-auto" > <img src={$tempProfileFiles && $tempProfileFiles.profile ? $tempProfileFiles.profile - : `/api/public/${$user.username}-profile.png`} + : `/api/public/${$subject.username}-profile.png`} class="absolute w-full h-full object-cover object-center visible overflow-hidden" /> </div> |
