mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-07 05:03:22 +00:00
fix(app): fall back to icon.url in sidebar avatar (#18747)
This commit is contained in:
parent
91468fe455
commit
16caaa2229
1 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,9 @@ export const ProjectIcon = (props: { project: LocalProject; class?: string; noti
|
|||
<Avatar
|
||||
fallback={name()}
|
||||
src={
|
||||
props.project.id === OPENCODE_PROJECT_ID ? "https://opencode.ai/favicon.svg" : props.project.icon?.override
|
||||
props.project.id === OPENCODE_PROJECT_ID
|
||||
? "https://opencode.ai/favicon.svg"
|
||||
: props.project.icon?.override || props.project.icon?.url
|
||||
}
|
||||
{...getAvatarColors(props.project.icon?.color)}
|
||||
class="size-full rounded"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue