Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(apps): make detected app-icon fill its tile so all four corners squircle
Adam Eivy84da553162ec
diff --git a/client/src/components/AppIcon.jsx b/client/src/components/AppIcon.jsxindex 311e16ce32..9479fca5c2 100644--- a/client/src/components/AppIcon.jsx+++ b/client/src/components/AppIcon.jsx@@ -173,12 +173,19 @@ function getAppIconUrl(appId) {return `${base}/api/apps/${appId}/icon`;}-export default function AppIcon({ icon, appId, hasAppIcon, size = 24, className = '', ariaLabel }) {+export default function AppIcon({ icon, appId, hasAppIcon, size = 24, className = '', ariaLabel, fillContainer = false }) {const [imgError, setImgError] = useState(false);- // Show real app icon image if the app has one detected+ // Show real app icon image if the app has one detected. When fillContainer is+ // set, the consumer has wrapped us in a sized + clipped tile (e.g. w-8 h-8+ // rounded-[22%] overflow-hidden) and wants the image to fill that tile so+ // the squircle mask applies to all four corners — otherwise the image sits+ // top-left at `size` and the wrapper's other three corners look blank.if (hasAppIcon && appId && !imgError) {- const sizeStyle = { width: size, height: size, minWidth: size, minHeight: size };+ const wrapperClass = fillContainer ? 'block w-full h-full' : 'inline-block';+ const wrapperStyle = fillContainer+ ? undefined+ : { width: size, height: size, minWidth: size, minHeight: size };const imgEl = (<imgsrc={getAppIconUrl(appId)}@@ -189,9 +196,9 @@ export default function AppIcon({ icon, appId, hasAppIcon, size = 24, className);if (ariaLabel) {- return <span role="img" aria-label={ariaLabel} className="inline-block" style={sizeStyle}>{imgEl}</span>;+ return <span role="img" aria-label={ariaLabel} className={wrapperClass} style={wrapperStyle}>{imgEl}</span>;}- return <span aria-hidden="true" className="inline-block" style={sizeStyle}>{imgEl}</span>;+ return <span aria-hidden="true" className={wrapperClass} style={wrapperStyle}>{imgEl}</span>;}// Fall back to SVG icondiff --git a/client/src/components/AppTile.jsx b/client/src/components/AppTile.jsxindex 2526167bc1..6803eed45e 100644--- a/client/src/components/AppTile.jsx+++ b/client/src/components/AppTile.jsx@@ -43,7 +43,7 @@ const AppTile = memo(function AppTile({ app, onUpdate }) {<div className={`w-8 h-8 rounded-[22%] shrink-0 overflow-hidden ${app.appIconPath ? '' : `flex items-center justify-center ${app.archived ? 'bg-port-border/50 text-gray-500' : 'bg-port-border text-port-accent'}`}`} aria-hidden="true">- <AppIcon icon={app.icon || 'package'} appId={app.id} hasAppIcon={!!app.appIconPath} size={18} />+ <AppIcon icon={app.icon || 'package'} appId={app.id} hasAppIcon={!!app.appIconPath} size={18} fillContainer /></div><div className="min-w-0"><div className="flex items-center gap-1.5">diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsxindex d478e35a9f..145d8dac07 100644--- a/client/src/pages/Apps.jsx+++ b/client/src/pages/Apps.jsx@@ -217,7 +217,7 @@ export default function Apps() {<div className={`w-8 h-8 rounded-[22%] shrink-0 overflow-hidden ${app.appIconPath ? '' : `flex items-center justify-center ${app.archived ? 'bg-port-border/50 text-gray-500' : 'bg-port-border text-port-accent'}`}`}>- <AppIcon icon={app.icon || 'package'} appId={app.id} hasAppIcon={!!app.appIconPath} size={18} />+ <AppIcon icon={app.icon || 'package'} appId={app.id} hasAppIcon={!!app.appIconPath} size={18} fillContainer /></div><div className="min-w-0 flex-1"><div className="flex flex-wrap items-center gap-2">