The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): featured hero shows the entry's artwork
Austin Pickett6a962f76ef72
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-card.tsx b/apps/desktop/src/app/capabilities/catalog/catalog-card.tsxindex 688b6290de3..a9b774c7cc1 100644--- a/apps/desktop/src/app/capabilities/catalog/catalog-card.tsx+++ b/apps/desktop/src/app/capabilities/catalog/catalog-card.tsx@@ -76,8 +76,8 @@ interface CatalogCardProps {const isEditorialArt = (entry: CatalogEntry) => Boolean(entry.imageUrl?.includes('official-art'))-/** Every card shows its artwork; the hero paints its own. */-const showsCardImage = (entry: CatalogEntry, variant: CatalogCardVariant) => variant !== 'hero' && Boolean(entry.imageUrl)+/** Every card shows its artwork, the hero included (its slot is the right 42%, see catalog-discovery.css). */+const showsCardImage = (entry: CatalogEntry) => Boolean(entry.imageUrl)function CatalogCardFooter({ entry, action, hero }: { entry: CatalogEntry; action: ReactNode; hero: boolean }) {return (@@ -104,7 +104,7 @@ export function CatalogCard({ entry, action, accentIndex, onOpen, onCategory, ondata-entry-id={entry.id}style={style}>- {showsCardImage(entry, variant) && <CatalogImage className="catalog-card-image aspect-[2/1]" key={entry.imageUrl!} src={entry.imageUrl!} />}+ {showsCardImage(entry) && <CatalogImage className="catalog-card-image aspect-[2/1]" key={entry.imageUrl!} src={entry.imageUrl!} />}{variant !== 'default' && <div className="catalog-card-topline"><span className="min-w-0 truncate" title={entry.author || catalogLabel(entry.source)}>{entry.author || catalogLabel(entry.source)}</span>{variant !== 'hero' && <span className="relative shrink-0">{action}</span>}diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-discovery.css b/apps/desktop/src/app/capabilities/catalog/catalog-discovery.cssindex 6cb0d97d411..38fc1ca366e 100644--- a/apps/desktop/src/app/capabilities/catalog/catalog-discovery.css+++ b/apps/desktop/src/app/capabilities/catalog/catalog-discovery.css@@ -41,7 +41,8 @@[data-catalog-card][data-catalog-variant=hero] .catalog-card-copy { padding: 0; }[data-catalog-variant=hero] .catalog-card-footer { padding: 0; }[data-catalog-variant=hero] .catalog-card-footer > .catalog-hero-action { width: auto; margin-left: auto; }-[data-catalog-variant=hero]:not([data-catalog-editorial-art]) .catalog-card-image { position: absolute; inset: 0 0 0 auto; width: 42%; height: 100%; object-fit: contain; z-index: -1; }+[data-catalog-variant=hero]:not([data-catalog-editorial-art]) .catalog-card-image { position: absolute; inset: 0 0 0 auto; width: 42%; height: 100%; object-fit: cover; z-index: -1; mask-image: linear-gradient(to right, transparent, #000 45%); }+[data-catalog-variant=hero]:has(.catalog-card-image) .catalog-card-footer { max-width: 58%; }[data-catalog-variant=hero] .catalog-card-copy { flex: none; max-width: 58%; }[data-catalog-variant=hero] .catalog-card-copy button > span { font-size: 2rem; }[data-catalog-variant=hero] .catalog-card-dates { margin-top: 0; }