From decfe7eae6a4049658f4a00f10949bb4fa5f49bb Mon Sep 17 00:00:00 2001 From: Emmy Leke Date: Thu, 20 Apr 2023 15:32:26 +0100 Subject: [PATCH] Make standalone CResourceList full height --- client/web/admin/src/mixins/listHelpers.js | 2 +- .../admin/src/themes/corteza-base/custom.scss | 18 ++ .../src/views/Automation/Session/List.vue | 13 +- .../src/views/Automation/Workflow/List.vue | 7 +- .../admin/src/views/Federation/Nodes/List.vue | 4 +- .../src/views/System/Application/List.vue | 7 +- .../src/views/System/AuthClient/List.vue | 6 +- .../web/admin/src/views/System/Queue/List.vue | 6 +- .../web/admin/src/views/System/Role/List.vue | 8 +- .../views/System/SensitivityLevel/List.vue | 5 +- .../admin/src/views/System/Template/List.vue | 8 +- .../web/admin/src/views/System/User/List.vue | 9 +- client/web/reporter/src/mixins/listHelpers.js | 2 +- client/web/reporter/src/views/Report/List.vue | 169 +++++----- client/web/workflow/src/mixins/listHelpers.js | 2 +- .../web/workflow/src/views/Workflow/List.vue | 289 +++++++++--------- 16 files changed, 312 insertions(+), 243 deletions(-) diff --git a/client/web/admin/src/mixins/listHelpers.js b/client/web/admin/src/mixins/listHelpers.js index f12b26cdf..f95609b56 100644 --- a/client/web/admin/src/mixins/listHelpers.js +++ b/client/web/admin/src/mixins/listHelpers.js @@ -10,7 +10,7 @@ export default { filter: {}, pagination: { - limit: 10, + limit: 100, pageCursor: undefined, prevPage: '', nextPage: '', diff --git a/client/web/admin/src/themes/corteza-base/custom.scss b/client/web/admin/src/themes/corteza-base/custom.scss index 1bb91b399..fee90ccee 100644 --- a/client/web/admin/src/themes/corteza-base/custom.scss +++ b/client/web/admin/src/themes/corteza-base/custom.scss @@ -49,6 +49,24 @@ th { white-space: nowrap; } +.wrap-with-vertical-gutters { + margin-top: -0.25rem; + + > * { + margin-top: 0.25rem; + } +} + +// custom height for resource lists with buttons +.custom-resource-height { + height: calc(100vh - 115px); +} + +// to remove the gap on top of the sticky header table +.b-table-sticky-header > .table.b-table > thead > tr > th { + border: 0; +} + .v-select { .vs__search { margin-top: 0.375rem; diff --git a/client/web/admin/src/views/Automation/Session/List.vue b/client/web/admin/src/views/Automation/Session/List.vue index 9a7895d2e..51ca4cea8 100644 --- a/client/web/admin/src/views/Automation/Session/List.vue +++ b/client/web/admin/src/views/Automation/Session/List.vue @@ -1,9 +1,11 @@