Browse Source

In which I am bad at HTML.

Ian Rose 8 năm trước cách đây
mục cha
commit
cc07edb473
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  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[];