1 parent be142bd commit 8cb970dCopy full SHA for 8cb970d
1 file changed
plugins/terminals/src/node/manager.ts
@@ -94,7 +94,12 @@ const HUB_STATUS: Record<TerminalStatus, HubTerminalEntry['status']> = {
94
error: 'error',
95
}
96
97
-/** Preserve explicit masks; normalize other hub icons to the terminal SPA's UnoCSS classes. */
+/**
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
+ */
103
function toIconClass(icon?: HubTerminalEntry['icon']): string | undefined {
104
const raw = typeof icon === 'string' ? icon : icon?.light
105
if (!raw)
0 commit comments