Skip to content

Commit 84f6622

Browse files
odeimaizmrnicegyu11
authored andcommitted
πŸ› [Frontend] Fix: Credits Summary indicator's offset (ITISFoundation#7333)
1 parent 6c31181 commit 84f6622

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

β€Žservices/static-webserver/client/source/class/osparc/desktop/credits/CreditsIndicatorButton.jsβ€Ž

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ qx.Class.define("osparc.desktop.credits.CreditsIndicatorButton", {
8484
},
8585

8686
__handleOutsideEvent: function(event) {
87-
const offset = 30;
88-
if (
89-
!osparc.utils.Utils.isMouseOnElement(this.__creditsContainer, event, offset) &&
90-
!osparc.utils.Utils.isMouseOnElement(this, event, offset)
91-
) {
87+
const offset = 0;
88+
const onContainer = osparc.utils.Utils.isMouseOnElement(this.__creditsContainer, event, offset);
89+
const onButton = osparc.utils.Utils.isMouseOnElement(this, event, offset);
90+
if (!onContainer && !onButton) {
9291
this.__hideCreditsContainer();
9392
}
9493
},

β€Žservices/static-webserver/client/source/class/osparc/desktop/credits/CreditsPerService.jsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ qx.Class.define("osparc.desktop.credits.CreditsPerService", {
9090
});
9191
} else {
9292
const nothingFound = new qx.ui.basic.Label(this.tr("No usage found")).set({
93-
font: "text-14"
93+
font: "text-14",
94+
padding: 20,
9495
});
9596
this._add(nothingFound);
9697
}

β€Žservices/static-webserver/client/source/class/osparc/desktop/credits/CreditsSummary.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ qx.Class.define("osparc.desktop.credits.CreditsSummary", {
2727
appearance: "floating-menu",
2828
padding: 8,
2929
maxWidth: this.self().WIDTH,
30+
minHeight: 150,
3031
zIndex: osparc.utils.Utils.FLOATING_Z_INDEX,
3132
});
3233
osparc.utils.Utils.setIdToWidget(this, "creditsSummary");

0 commit comments

Comments
Β (0)