forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 [Frontend] Logger UX improvements (ITISFoundation#6222)
- Loading branch information
Showing
8 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
services/static-webserver/client/source/class/osparc/ui/table/rowrenderer/ExtendSelection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* ************************************************************************ | ||
osparc - the simcore frontend | ||
https://osparc.io | ||
Copyright: | ||
2024 IT'IS Foundation, https://itis.swiss | ||
License: | ||
MIT: https://opensource.org/licenses/MIT | ||
Authors: | ||
* Odei Maiz (odeimaiz) | ||
************************************************************************ */ | ||
|
||
qx.Class.define("osparc.ui.table.rowrenderer.ExtendSelection", { | ||
extend: qx.ui.table.rowrenderer.Default, | ||
|
||
members: { | ||
// overridden | ||
updateDataRowElement : function(rowInfo, rowElem) { | ||
this.base(arguments, rowInfo, rowElem); | ||
|
||
const messageCellPos = 2; | ||
// extend collapse row | ||
const style = rowElem.style; | ||
if (rowInfo.selected) { | ||
let messageDiv = rowElem.children.item(messageCellPos) | ||
if (rowElem.children.item(messageCellPos).children.length) { | ||
messageDiv = rowElem.children.item(messageCellPos).children.item(0); | ||
} | ||
const extendedHeight = messageDiv.getBoundingClientRect().height + "px"; | ||
style.height = extendedHeight; | ||
Array.from(rowElem.children).forEach(child => child.style.height = extendedHeight); | ||
} else { | ||
style.height = "19px"; | ||
} | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters