浏览代码

In which I am bad at HTML.

Ian Rose 8 年之前
父节点
当前提交
cc07edb473
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      packages/launcher/src/index.ts

+ 2 - 4
packages/launcher/src/index.ts

@@ -262,13 +262,11 @@ class LauncherWidget extends VDomRenderer<LauncherModel> {
       };
       let imageClass = `${item.iconClass} ${IMAGE_CLASS}`;
       let icon = h.div({ className: imageClass, onclick }, item.iconLabel);
-      let title = item.displayName;
+      let title = item.displayName + (item.category ? ' ' + item.category : '');
       let text = h.span({className: TEXT_CLASS, onclick, title }, title);
-      let activityType = item.category ? ' ' + item.category : '';
-      let category = h.span({className: TEXT_CLASS, onclick }, activityType);
       return h.div({
         className: ITEM_CLASS,
-      }, [icon, text, category]);
+      }, [icon, text]);
     });
 
     let children: VirtualNode[];