diff options
| author | Adam Soltys <[email protected]> | 2023-01-28 00:17:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-28 00:17:22 -0800 |
| commit | 84815786d3aee1b2487f3cc8fb88d4e3f30e4ecb (patch) | |
| tree | 6faf7bb8fa88c7da732f99203d048467c5dca92a /src/components | |
| parent | c8b2d7bc6a45aa772c3869c98b4fd5ffbe5b6226 (diff) | |
| download | coinos-ui-84815786d3aee1b2487f3cc8fb88d4e3f30e4ecb.tar.gz coinos-ui-84815786d3aee1b2487f3cc8fb88d4e3f30e4ecb.zip | |
banner bug
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/AppHeader.svelte | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 8d64e713..09cc34f4 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -23,7 +23,13 @@ let showMenu = false; - $: bg = $banner?.id === subject.id ? `url(${$banner.src})` : subject?.banner ? `url(/api/public/${subject.id}-banner.webp)` : undefined; + $: bg = + $banner && $banner.id === subject.id + ? `url(${$banner.src})` + : subject?.banner + ? `url(/api/public/${subject.id}-banner.webp)` + : undefined; + $: $page && (showMenu = false); </script> |
