Skip to content

Commit 515b50d

Browse files
authored
fix(app): keep square logos out of loading screens (#8897)
1 parent 4815ce9 commit 515b50d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/docs/content/docs/platform/enterprise/whitelabeling.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Go to **Settings → Organization → White-labeling** in your workspace.
2323
| Field | Description |
2424
|-------|-------------|
2525
| **Logo** | Shown in the collapsed sidebar. Square image (PNG, JPEG, SVG, or WebP). Max 5 MB. |
26-
| **Wordmark** | Shown in the expanded sidebar. Wide image (PNG, JPEG, SVG, or WebP). Max 5 MB. |
26+
| **Wordmark** | Shown in the expanded sidebar and application loading screens. Wide image (PNG, JPEG, SVG, or WebP). Max 5 MB. |
2727
| **Brand name** | Replaces "Sim" in the sidebar and select UI elements. Max 64 characters. |
2828

29+
Loading screens use the wordmark, never the square logo. Without a wordmark, they show the brand name; when the name is still Sim, they use the built-in Sim wordmark.
2930

3031
### 3. Configure colors
3132

‎apps/sim/app/_shell/application-loading.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { cn, SimWordmark } from '@sim/emcn'
2+
import { defaultBrandConfig } from '@/lib/branding'
23
import { DesktopTitleBarLane } from '@/app/_shell/desktop-title-bar'
34
import { type BrandConfig, getBrandConfig } from '@/ee/whitelabeling'
45

@@ -12,8 +13,6 @@ export function ApplicationLoading({
1213
brand = getBrandConfig(),
1314
fullScreen = true,
1415
}: ApplicationLoadingProps) {
15-
const wordmarkUrl = brand.wordmarkUrl || brand.logoUrl
16-
1716
return (
1817
<div
1918
role='status'
@@ -24,9 +23,9 @@ export function ApplicationLoading({
2423
)}
2524
>
2625
{fullScreen && <DesktopTitleBarLane />}
27-
{wordmarkUrl ? (
28-
<img src={wordmarkUrl} alt='' className='h-8 max-w-[240px] object-contain' />
29-
) : brand.isWhitelabeled ? (
26+
{brand.wordmarkUrl ? (
27+
<img src={brand.wordmarkUrl} alt='' className='h-8 max-w-[240px] object-contain' />
28+
) : brand.name !== defaultBrandConfig.name ? (
3029
<span className='text-[var(--text-tertiary)] text-lg'>{brand.name}</span>
3130
) : (
3231
<SimWordmark size='loading' tone='brand-muted' />

0 commit comments

Comments
 (0)