Skip to content

Commit

Permalink
Adjust thumbnail css
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgunter committed Jul 17, 2023
1 parent 81263d7 commit d0567c9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
1 change: 1 addition & 0 deletions cws-ui/src/main/webapp/css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ div[class*="bar-"]{
position: relative;
outline: none;
float: right;
text-align: end;;
}

.copy svg {
Expand Down
27 changes: 19 additions & 8 deletions install/cws-ui/processes.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@
margin-left: 8px;
padding: 5px;
}
.thumbnail {
margin-top: 5px !important;
margin-bottom: 0px !important;
}
</style>

<!-- Just for debugging purposes. Don't actually copy this line! -->
Expand Down Expand Up @@ -515,23 +520,29 @@
var putAllAfter = 0;
var count = 0;
for (const [key, value] of Object.entries(data)) {
var temp = "";
var tempVal = value;
if (key === "workerId") {
var tempKey = key.substring(7);
if (tempKey === "workerId") {
continue;
}
if (count > 3) {
putAllAfter = 1;
}
if (key.includes("(file, image)")) {
tempVal = '<a class="thumbnail">'
if (tempKey.includes("(file, image)")) {
temp = "<div><div style=\"width: 85%; max-width: 300px; min-height: 25px; float:left; overflow-wrap: break-word;\"><b>" + tempKey + ":</b> " + '<a class="thumbnail">'
+ '<img src="' + tempVal + '">'
+ '</a>'
}
var temp = "<div><div style=\"width: 85%; max-width: 300px; min-height: 25px; float:left; overflow-wrap: break-word;\"><b>" + key + ":</b> " + tempVal + "</div><div class=\"copySpan\" style=\"width: 15%; float:right\">"
+ "<span aria-label=\"Copy to clipboard\" data-microtip-position=\"top-left\" role=\"tooltip\" class=\"copy\" data-copyValue=\"" + key + "\" onClick=''>"
+ '</a>' + "</div><div class=\"copySpan\" style=\"width: 30px; float:right\">"
+ "<span aria-label=\"Copy to clipboard\" data-microtip-position=\"top-left\" role=\"tooltip\" class=\"copy\" data-copyValue=\"" + tempVal + "\" onClick=''>"
+ "<img src=\"images/copy.svg\" class=\"copy-icon clipboard\">"
+ "</span></div></div><br>";
} else {
temp = "<div><div style=\"width: 85%; max-width: 300px; min-height: 25px; float:left; overflow-wrap: break-word;\"><b>" + tempKey + ":</b> " + tempVal + "</div><div class=\"copySpan\" style=\"width: 30px; float:right\">"
+ "<span aria-label=\"Copy to clipboard\" data-microtip-position=\"top-left\" role=\"tooltip\" class=\"copy\" data-copyValue=\"" + tempKey + "\" onClick=''>"
+ "<img src=\"images/copy.svg\" class=\"copy-icon clipboard\">"
+ "</span></div></div><br>";
if (key === "startedOnWorkerId") {
}
if (tempKey === "startedOnWorkerId") {
after = after + temp;
putAllAfter = 1;
} else if (putAllAfter === 0) {
Expand Down

0 comments on commit d0567c9

Please sign in to comment.