File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/lib/components/general Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 52
52
let actionButtons: HTMLElement ;
53
53
54
54
let imageLoaded = false ;
55
+ let thumbnailLoaded = false ;
55
56
</script >
56
57
57
58
<div
76
77
{:else }
77
78
<img
78
79
class =" logo absolute max-h-full min-h-full min-w-full max-w-full"
80
+ class:invisible ={! imageLoaded }
79
81
src ={renderedLogo }
80
82
alt =" {renderedName } Logo"
81
83
on:load ={() => (imageLoaded = true )} />
82
- {#if ! imageLoaded }
84
+ {#if ! imageLoaded && thumbHashData }
83
85
<img
84
86
class =" logo absolute max-h-full min-h-full min-w-full max-w-full bg-neutral-500"
87
+ class:invisible ={! thumbnailLoaded }
85
88
src ={thumbHashData }
86
89
alt =" {renderedName } Logo"
87
90
width =" 100%"
91
+ on:load ={() => (thumbnailLoaded = true )}
88
92
out:fade ={{ duration : 200 , delay : 100 }} />
89
93
{/if }
90
94
{/if }
You can’t perform that action at this time.
0 commit comments