Skip to content

Commit fdb8e4c

Browse files
committed
aesthetics
1 parent 4d9e811 commit fdb8e4c

File tree

1 file changed

+7
-1
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+7
-1
lines changed

services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,13 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
218218
});
219219
hypertoolsMenu.add(hypertoolButton);
220220
osparc.study.Utils.guessIcon(templateData)
221-
.then(iconSource => osparc.utils.Utils.replaceIconWithThumbnail(hypertoolButton, iconSource, 22));
221+
.then(iconSource => {
222+
if (iconSource) {
223+
const iconSize = 22;
224+
hypertoolButton.getChildControl("icon").set({ minWidth: iconSize+2 });
225+
osparc.utils.Utils.replaceIconWithThumbnail(hypertoolButton, iconSource, iconSize);
226+
}
227+
});
222228
});
223229
}
224230
});

0 commit comments

Comments
 (0)