From 60cd5fc27970b712b3d9731bce9ce4c124d135f3 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:26:35 +0100 Subject: [PATCH 01/11] Fix workflow invocation name overflow This will force wrapping the name of the workflow when it overflows --- client/src/components/Workflow/Invocations.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/Workflow/Invocations.vue b/client/src/components/Workflow/Invocations.vue index 9e655d3da27..f357b1929ef 100644 --- a/client/src/components/Workflow/Invocations.vue +++ b/client/src/components/Workflow/Invocations.vue @@ -150,3 +150,8 @@ export default { }, }; + From 9ba9783bd0306d97f94a0aada4df1d71c53aae39 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 19 Jan 2022 18:35:26 +0100 Subject: [PATCH 02/11] Use break-word on overflow-wrap --- client/src/components/Workflow/Invocations.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Invocations.vue b/client/src/components/Workflow/Invocations.vue index f357b1929ef..d895db53716 100644 --- a/client/src/components/Workflow/Invocations.vue +++ b/client/src/components/Workflow/Invocations.vue @@ -152,6 +152,6 @@ export default { From b920bfb7a953520afc30227487b1f3fb8ca89711 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 19 Jan 2022 18:36:50 +0100 Subject: [PATCH 03/11] Set table columns widths as suggested in comments --- .../src/components/Workflow/Invocations.vue | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/client/src/components/Workflow/Invocations.vue b/client/src/components/Workflow/Invocations.vue index d895db53716..b74b45bc2fd 100644 --- a/client/src/components/Workflow/Invocations.vue +++ b/client/src/components/Workflow/Invocations.vue @@ -99,12 +99,12 @@ export default { }, data() { const fields = [ - { key: "workflow_id", label: "Workflow" }, - { key: "history_id", label: "History" }, - { key: "create_time", label: "Invoked" }, - { key: "update_time", label: "Updated" }, - { key: "state" }, - { key: "execute", label: "" }, + { key: "workflow_id", label: "Workflow", class: "col-name" }, + { key: "history_id", label: "History", class: "col-history" }, + { key: "create_time", label: "Invoked", class: "col-small" }, + { key: "update_time", label: "Updated", class: "col-small" }, + { key: "state", class: "col-small" }, + { key: "execute", label: "", class: "col-execute" }, ]; return { invocationItemsModel: [], @@ -154,4 +154,17 @@ export default { .toggle-invocation-details { overflow-wrap: break-word; } +.table::v-deep .col-name { + width: 40%; + min-width: 20ch; +} +.table::v-deep .col-history { + width: 20%; +} +.table::v-deep .col-small { + width: 100px; +} +.table::v-deep .col-execute { + width: 50px; +} From 71e3fd4a6812e10c84028e4f8c449cf9fd57e773 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Fri, 21 Jan 2022 12:26:40 +0100 Subject: [PATCH 04/11] Add min-width to table This will prevent the workflow name column to completely dissapear in small resolutions --- client/src/components/Workflow/Invocations.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/src/components/Workflow/Invocations.vue b/client/src/components/Workflow/Invocations.vue index b74b45bc2fd..5afa90b0fea 100644 --- a/client/src/components/Workflow/Invocations.vue +++ b/client/src/components/Workflow/Invocations.vue @@ -21,6 +21,7 @@ caption-top :busy="loading" fixed + class="invocations-table" >