Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(icon): render entity icons with explicit size class for Safari (#3738)

Peter Chinmanebc94404c027
diff --git a/js/app/packages/core/component/EntityIcon.tsx b/js/app/packages/core/component/EntityIcon.tsx
index c26168fc3d..d2ddd4f1ed 100644
--- a/js/app/packages/core/component/EntityIcon.tsx
+++ b/js/app/packages/core/component/EntityIcon.tsx
@@ -404,7 +404,8 @@ export function EntityIcon(props: EntityIconProps) {
props.class
)}
>
- <Dynamic component={icon()} />
+ {/* size-full: Safari needs a CSS size, not the SVG's % attributes. */}
+ <Dynamic component={icon()} class="size-full" />
</div>
);
}
@@ -429,7 +430,8 @@ export function CustomEntityIcon(
'p-[20%]': props.useBackground,
}}
>
- <Dynamic component={props.icon || config().icon} />
+ {/* size-full: see EntityIcon (Safari). */}
+ <Dynamic component={props.icon || config().icon} class="size-full" />
</div>
);
}