Skip to content

Commit 8cb970d

Browse files
committed
docs(terminals): preserve icon normalization constraints
1 parent be142bd commit 8cb970d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎plugins/terminals/src/node/manager.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ const HUB_STATUS: Record<TerminalStatus, HubTerminalEntry['status']> = {
9494
error: 'error',
9595
}
9696

97-
/** Preserve explicit masks; normalize other hub icons to the terminal SPA's UnoCSS classes. */
97+
/**
98+
* Preserve explicit masks; normalize other hub icons (`ph:code-duotone`) to
99+
* UnoCSS classes (`i-ph-code-duotone`), choosing the light variant of theme pairs.
100+
* Class icons render only if the terminal SPA's UnoCSS build includes them
101+
* (see the safelist in `uno.config.ts`); masks load their image URL directly.
102+
*/
98103
function toIconClass(icon?: HubTerminalEntry['icon']): string | undefined {
99104
const raw = typeof icon === 'string' ? icon : icon?.light
100105
if (!raw)

0 commit comments

Comments
 (0)