From 07d399403be2107a077110fac8d55e7045c42efd Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Wed, 23 Feb 2022 00:27:07 +0100 Subject: [PATCH] Refactor how to use new Jitsi icon Signed-off-by: Gregoire Parant --- .../EmbedScreens/CoWebsiteThumbnailSlot.svelte | 9 ++++++++- .../logos => src/Components/images}/jitsi.png | Bin 2 files changed, 8 insertions(+), 1 deletion(-) rename front/{public/resources/logos => src/Components/images}/jitsi.png (100%) diff --git a/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte b/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte index d8431704..a21d8389 100644 --- a/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte +++ b/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte @@ -9,6 +9,8 @@ import { iframeStates } from "../../WebRtc/CoWebsiteManager"; import { coWebsiteManager } from "../../WebRtc/CoWebsiteManager"; + import uploadFile from "../images/jitsi.png"; + export let index: number; export let coWebsite: CoWebsite; export let vertical: boolean; @@ -21,7 +23,7 @@ onMount(() => { icon.src = isJitsi - ? "/resources/logos/jitsi.png" + ? uploadFile : `${ICON_URL}/icon?url=${coWebsite.getUrl().hostname}&size=64..96..256&fallback_icon_color=14304c`; icon.alt = coWebsite.getUrl().hostname; icon.onload = () => { @@ -350,9 +352,14 @@ color: white; padding: 4px; border-radius: 4px; + p { margin-bottom: 0; } + + &.hide { + display: none; + } } } diff --git a/front/public/resources/logos/jitsi.png b/front/src/Components/images/jitsi.png similarity index 100% rename from front/public/resources/logos/jitsi.png rename to front/src/Components/images/jitsi.png