aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-15 14:41:28 -0800
committerAdam Soltys <[email protected]>2022-12-15 14:41:28 -0800
commit524097a8f421448343ff2466da56c47589ffcac4 (patch)
tree4c9b92b1baed0a975edc4ddf269312e21c620aaa /src/components
parent6a1514a2fb50034412b6bef29b024a9c08a25b30 (diff)
downloadcoinos-ui-524097a8f421448343ff2466da56c47589ffcac4.tar.gz
coinos-ui-524097a8f421448343ff2466da56c47589ffcac4.zip
transaction list styles
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppHeader.svelte10
-rw-r--r--src/components/Avatar.svelte8
-rw-r--r--src/components/LandingHero.svelte2
3 files changed, 5 insertions, 15 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index 429735ab..bdfc76b6 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -1,6 +1,6 @@
<script>
import OutClick from 'svelte-outclick';
- import { newPayment, colorTheme, tempProfileFiles } from '$lib/store';
+ import { newPayment, colorTheme } from '$lib/store';
import { goto } from '$app/navigation';
import { Avatar, Icon } from '$comp';
import { t } from '$lib/translations';
@@ -23,13 +23,7 @@
let showMenu = false;
- $: bg =
- $tempProfileFiles && $tempProfileFiles.banner
- ? `url(${$tempProfileFiles.banner})`
- : subject?.banner
- ? `url(/api/public/${subject.username}-banner.webp)`
- : undefined;
-
+ $: bg = subject?.banner ? `url(/api/public/${subject.username}-banner.webp)` : undefined;
$: $page && (showMenu = false);
</script>
diff --git a/src/components/Avatar.svelte b/src/components/Avatar.svelte
index 054279ec..d636416d 100644
--- a/src/components/Avatar.svelte
+++ b/src/components/Avatar.svelte
@@ -1,5 +1,5 @@
<script>
- import { colorTheme, tempProfileFiles } from '$lib/store';
+ import { colorTheme } from '$lib/store';
import { Icon } from '$comp';
export let user;
@@ -14,14 +14,12 @@
>
{#if user?.profile}
<img
- src={$tempProfileFiles && $tempProfileFiles.profile
- ? $tempProfileFiles.profile
- : `/api/public/${user.username}-profile.webp`}
+ src={`/api/public/${user.username}-profile.webp`}
class="w-full h-full object-cover object-center overflow-hidden"
alt={user.username}
/>
{:else}
- <Icon icon="logo-symbol-white" />
+ <Icon icon="logo-symbol-white" style="w-4/5" />
{/if}
</div>
</a>
diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte
index 213138a2..8e1d6476 100644
--- a/src/components/LandingHero.svelte
+++ b/src/components/LandingHero.svelte
@@ -2,8 +2,6 @@
import { goto } from '$app/navigation';
import { Icon, Image } from '$comp';
import { t } from '$lib/translations';
-
- export let user;
</script>
<div class="mt-[96.88px] md:mt-0">