From 3f4e9df2b88059cd71c91b6f7fdeeba33b47e3ff Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann <christian@bagerbach.com> Date: Fri, 26 Aug 2022 09:12:06 +0200 Subject: [PATCH] fix: hotfix for podcast grid where podcast thumbnails sometimes wouldn't appear bug caused when opening Obsidian with the plugin view open. The intersection observer wouldn't detect intersection, so images wouldn't load. --- src/ui/PodcastView/PodcastGridCard.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/PodcastView/PodcastGridCard.svelte b/src/ui/PodcastView/PodcastGridCard.svelte index 5ded9a3..27a4dfe 100644 --- a/src/ui/PodcastView/PodcastGridCard.svelte +++ b/src/ui/PodcastView/PodcastGridCard.svelte @@ -1,7 +1,7 @@ <script lang="ts"> import { PodcastFeed } from "src/types/PodcastFeed"; import { createEventDispatcher } from "svelte"; - import ImageLoader from "../common/ImageLoader.svelte"; + import Image from "../common/Image.svelte"; export let feed: PodcastFeed; @@ -12,7 +12,7 @@ } </script> -<ImageLoader +<Image src={feed.artworkUrl} alt={feed.title} on:click={onclickPodcast.bind(null, feed)} -- GitLab