Skip to content

Commit 4cdea96

Browse files
committed
aesthetics
1 parent f5e22f9 commit 4cdea96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
4444
ITEM_WIDTH: 190,
4545
ITEM_HEIGHT: 220,
4646
PADDING: 10,
47+
TITLE_PADDING: 6,
4748
SPACING_IN: 5,
4849
SPACING: 15,
4950
ICON_SIZE: 32,
@@ -202,8 +203,8 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
202203
control = new qx.ui.basic.Label().set({
203204
textColor: "contrasted-text-light",
204205
font: "text-14",
205-
padding: this.self().PADDING,
206-
maxWidth: this.self().ITEM_WIDTH - 2*this.self().PADDING,
206+
padding: this.self().TITLE_PADDING,
207+
maxWidth: this.self().ITEM_WIDTH,
207208
maxHeight: this.self().TITLE_MAX_HEIGHT,
208209
});
209210
layout = this.getChildControl("header");

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ qx.Class.define("osparc.dashboard.GridButtonItem", {
9393
break;
9494
case "menu-button":
9595
this.getChildControl("title").set({
96-
maxWidth: osparc.dashboard.GridButtonBase.ITEM_WIDTH - osparc.dashboard.GridButtonBase.ICON_SIZE - this.self().MENU_BTN_DIMENSIONS - 6,
97-
padding: 4,
96+
maxWidth: osparc.dashboard.GridButtonBase.ITEM_WIDTH - osparc.dashboard.GridButtonBase.ICON_SIZE - this.self().MENU_BTN_DIMENSIONS,
9897
});
9998
control = new qx.ui.form.MenuButton().set({
10099
appearance: "form-button-outlined",

0 commit comments

Comments
 (0)