Explorar el Código

Merge pull request #2427 from ian-r-rose/wrap_launcher_text

Wrap text.
Steven Silvester hace 8 años
padre
commit
04ca0bae56
Se han modificado 2 ficheros con 2 adiciones y 5 borrados
  1. 2 1
      packages/launcher/src/index.ts
  2. 0 4
      packages/launcher/style/index.css

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

@@ -264,7 +264,8 @@ class LauncherWidget extends VDomRenderer<LauncherModel> {
       let icon = h.div({ className: imageClass, onclick }, item.iconLabel);
       let title = item.displayName;
       let text = h.span({className: TEXT_CLASS, onclick, title }, title);
-      let category = h.span({className: TEXT_CLASS, onclick }, item.category);
+      let activityType = item.category ? ' ' + item.category : '';
+      let category = h.span({className: TEXT_CLASS, onclick }, activityType);
       return h.div({
         className: ITEM_CLASS,
       }, [icon, text, category]);

+ 0 - 4
packages/launcher/style/index.css

@@ -70,9 +70,6 @@
 
 .jp-LauncherWidget-item {
   width: 100px;
-  height: 100px;
-  display: flex;
-  flex-direction: column;
 }
 
 
@@ -91,7 +88,6 @@
 .jp-LauncherWidget-text {
   flex: 0 0 auto;
   text-overflow: ellipsis;
-  white-space: nowrap;
 }