@@ -413,31 +413,35 @@ function WorkspaceHeaderImpl({
413413 className = { chipVariants ( { fullWidth : true } ) }
414414 >
415415 < div className = 'relative flex size-[16px] flex-shrink-0 items-center justify-center' >
416- { ! activeWorkspaceFull ? (
417- < Skeleton className = 'size-[16px] rounded-sm' />
418- ) : (
416+ { activeWorkspaceFull ?. logoUrl ? (
419417 < >
420- { activeWorkspaceFull . logoUrl ? (
421- < img
422- src = { activeWorkspaceFull . logoUrl }
423- alt = { activeWorkspaceFull . name || 'Workspace logo' }
424- className = 'size-[16px] rounded-sm object-cover group-hover:invisible'
425- />
426- ) : (
427- < div
428- className = 'flex size-[16px] items-center justify-center rounded-sm font-medium text-[9px] text-white leading-none group-hover:invisible'
429- style = { {
430- backgroundColor : activeWorkspaceFull . color ?? 'var(--brand-accent)' ,
431- } }
432- >
433- { workspaceInitial }
434- </ div >
435- ) }
418+ < img
419+ src = { activeWorkspaceFull . logoUrl }
420+ alt = { activeWorkspaceFull . name || 'Workspace logo' }
421+ className = 'size-[16px] rounded-sm object-cover group-hover:invisible'
422+ />
436423 < PanelLeft
437424 aria-hidden
438425 className = 'pointer-events-none invisible absolute inset-0 m-auto size-[16px] rotate-180 text-[var(--text-icon)] group-hover:visible'
439426 />
440427 </ >
428+ ) : activeWorkspace ? (
429+ < >
430+ < div
431+ className = 'flex size-[16px] items-center justify-center rounded-sm font-medium text-[9px] text-white leading-none group-hover:invisible'
432+ style = { {
433+ backgroundColor : activeWorkspaceFull ?. color ?? 'var(--brand-accent)' ,
434+ } }
435+ >
436+ { workspaceInitial }
437+ </ div >
438+ < PanelLeft
439+ aria-hidden
440+ className = 'pointer-events-none invisible absolute inset-0 m-auto size-[16px] rotate-180 text-[var(--text-icon)] group-hover:visible'
441+ />
442+ </ >
443+ ) : (
444+ < Skeleton className = 'size-[16px] rounded-sm' />
441445 ) }
442446 </ div >
443447 </ button >
@@ -800,21 +804,19 @@ function WorkspaceHeaderImpl({
800804 title = { activeWorkspace ?. name }
801805 disabled
802806 >
803- { activeWorkspaceFull ? (
804- activeWorkspaceFull . logoUrl ? (
805- < img
806- src = { activeWorkspaceFull . logoUrl }
807- alt = { activeWorkspaceFull . name || 'Workspace logo' }
808- className = 'size-[16px] flex-shrink-0 rounded-sm object-cover'
809- />
810- ) : (
811- < div
812- className = 'flex size-[16px] flex-shrink-0 items-center justify-center rounded-sm font-medium text-[9px] text-white leading-none'
813- style = { { backgroundColor : activeWorkspaceFull . color ?? 'var(--brand-accent)' } }
814- >
815- { workspaceInitial }
816- </ div >
817- )
807+ { activeWorkspaceFull ?. logoUrl ? (
808+ < img
809+ src = { activeWorkspaceFull . logoUrl }
810+ alt = { activeWorkspaceFull . name || 'Workspace logo' }
811+ className = 'size-[16px] flex-shrink-0 rounded-sm object-cover'
812+ />
813+ ) : activeWorkspace ? (
814+ < div
815+ className = 'flex size-[16px] flex-shrink-0 items-center justify-center rounded-sm font-medium text-[9px] text-white leading-none'
816+ style = { { backgroundColor : activeWorkspaceFull ?. color ?? 'var(--brand-accent)' } }
817+ >
818+ { workspaceInitial }
819+ </ div >
818820 ) : (
819821 < Skeleton className = 'size-[16px] flex-shrink-0 rounded-sm' />
820822 ) }
0 commit comments