diff --git a/apps/ai-game-creator-shell/src/view/project-development/index.tsx b/apps/ai-game-creator-shell/src/view/project-development/index.tsx index 12ac2247a..d4a9a3219 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/index.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/index.tsx @@ -981,11 +981,7 @@ const ResourceCard = memo(function ResourceCard({ ); } - /** - * 文档卡:居中图标,**不显示正文摘要**(旧实现把前 3 行正文铺在卡面上, - * 与"卡面不显示无效正文片段"冲突)。原文预览、代码块与 UI JSON 识别都留在 - * 独立详情浮层,卡面这条链路不再读内容做展示。 - */ + /** 文档卡:卡面只给居中的文档图标,不铺正文。 */ if (isDocumentCard) { return ( @@ -1079,13 +1075,13 @@ const ResourceCard = memo(function ResourceCard({ 它来自现有正式命名链路——manifest 资产的 `localPath` 就是生成时的 `assetName` 落盘名,用户重命名也会改写同一份 `localPath`,因此这里消费 投影 label 即可,不从临时输入或历史任务名另取一份显示名,也不持久化第二份 - 名称。名称长了由 CSS 单行省略,完整名称在 `title` 上;`data-resource-name` + 名称。名称长了由 CSS 单行省略,完整名称挂在整卡选中按钮的 `title` 上 + (名称条自身 `pointer-events: none`,悬停不到);`data-resource-name` 是给端到端验收的稳定判据。 */} {resource.label} @@ -1119,7 +1115,9 @@ const ResourceCard = memo(function ResourceCard({ aria-label={`选中资源:${categoryLabels[resource.category]} ${resource.label}`} aria-pressed={selected} data-resource-id={resource.id} - title="选中资源" + // 名称条 `pointer-events: none`,鼠标命中的是覆盖整卡的这颗按钮, + // 所以「长名可悬停读全」的完整名挂在这里;无障碍名仍是上面的 aria-label。 + title={resource.label} /> {isMedia ? (