From d0567c925b923e4a72195a2c02baf2695de97c31 Mon Sep 17 00:00:00 2001 From: Will Gunter Date: Mon, 17 Jul 2023 16:07:33 -0700 Subject: [PATCH] Adjust thumbnail css --- cws-ui/src/main/webapp/css/dashboard.css | 1 + install/cws-ui/processes.ftl | 27 +++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/cws-ui/src/main/webapp/css/dashboard.css b/cws-ui/src/main/webapp/css/dashboard.css index d3828a34..05aab132 100644 --- a/cws-ui/src/main/webapp/css/dashboard.css +++ b/cws-ui/src/main/webapp/css/dashboard.css @@ -313,6 +313,7 @@ div[class*="bar-"]{ position: relative; outline: none; float: right; + text-align: end;; } .copy svg { diff --git a/install/cws-ui/processes.ftl b/install/cws-ui/processes.ftl index 04b961f3..bb2ef5ff 100644 --- a/install/cws-ui/processes.ftl +++ b/install/cws-ui/processes.ftl @@ -128,6 +128,11 @@ margin-left: 8px; padding: 5px; } + + .thumbnail { + margin-top: 5px !important; + margin-bottom: 0px !important; + } @@ -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 = '' + if (tempKey.includes("(file, image)")) { + temp = "
" + tempKey + ": " + '' + '' - + '' - } - var temp = "
" + key + ": " + tempVal + "
" - + "" + + '' + "
" + + "" + + "" + + "

"; + } else { + temp = "
" + tempKey + ": " + tempVal + "
" + + "" + "" + "

"; - if (key === "startedOnWorkerId") { + } + if (tempKey === "startedOnWorkerId") { after = after + temp; putAllAfter = 1; } else if (putAllAfter === 0) {