fix(org): show org logo for favicon and OG image (#713)

When no custom favicon is set, fall back to the organization logo on
public org-site pages instead of the default ClassroomIO icon.

For OG images, only apply the theme-color background behind the logo
when rendering initials; real logo images now render without the tint.

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
Rotimi Best
2026-07-08 03:28:38 +01:00
committed by GitHub
co-authored by Cursor Agent Rotimi Best
parent 3d15bc0a01
commit 22a3e6484b
7 changed files with 47 additions and 22 deletions
-2
View File
@@ -9,7 +9,6 @@
import { Empty } from '@cio/ui/custom/empty';
import { SimpleLogoNav } from '@cio/ui/custom/simple-logo-nav';
import { buildOrgLandingPageProps, normalizeLandingPageSettings } from '$features/org/utils/landing-page';
import OrgSiteFavicon from '$features/app/org-site-favicon.svelte';
import { basePath } from '$lib/utils/store/app';
import { t } from '$lib/utils/functions/translations';
import { user } from '$lib/utils/store/user';
@@ -65,7 +64,6 @@
</svelte:head>
{#if data.isOrgSite && data.org}
<OrgSiteFavicon org={data.org} />
{#if data.ThemeComponent && landingPageProps}
<svelte:component this={data.ThemeComponent} {...landingPageProps} />
{/if}