From 458d722d4754f010344d1ff3bdc8612ac9bf7bee Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:25:40 +1300 Subject: [PATCH] fix(ui): consistent widget padding [r8s-136] (#82) --- app/assets/css/rdash.css | 7 +---- app/assets/css/vendor-override.css | 28 ++++++++++++++++++ .../views/containers/edit/container.html | 2 +- .../views/services/edit/includes/configs.html | 4 +-- .../views/services/edit/includes/logging.html | 4 +-- .../views/services/edit/includes/secrets.html | 4 +-- .../views/applications/helm/helm.html | 6 ++-- app/kubernetes/views/cluster/node/node.html | 6 ++-- .../configmap/edit/configMap.html | 6 ++-- .../configurations/secret/edit/secret.html | 8 ++--- .../access/resourcePoolAccess.html | 2 +- .../resource-pools/edit/resourcePool.html | 29 ++++++++----------- app/kubernetes/views/volumes/edit/volume.html | 2 +- .../registry-details/registry-details.html | 4 +-- .../kubernetes/dashboard/EnvironmentInfo.tsx | 6 ++-- .../AccessDatatable/AccessDatatable.tsx | 8 ++--- 16 files changed, 72 insertions(+), 54 deletions(-) diff --git a/app/assets/css/rdash.css b/app/assets/css/rdash.css index 449a1f647..fc7325718 100644 --- a/app/assets/css/rdash.css +++ b/app/assets/css/rdash.css @@ -144,12 +144,7 @@ div.input-mask { } .widget .widget-footer { border-top: 1px solid #e9e9e9; - padding: 10px; -} - -.widget .widget-footer { - border-top: 1px solid #e9e9e9; - padding: 10px; + padding: 20px; } .widget .widget-title .pagination, .widget .widget-footer .pagination { diff --git a/app/assets/css/vendor-override.css b/app/assets/css/vendor-override.css index 248d759cc..74fa94d4e 100644 --- a/app/assets/css/vendor-override.css +++ b/app/assets/css/vendor-override.css @@ -32,6 +32,34 @@ border-top: 1px solid var(--border-table-top-color); } +/* the first cell in the table should have 20px padding instead of 5px to match all other widgets */ +.widget .table:not(td .table) > thead > tr > th:first-child, +.widget .table:not(td .table) > tbody > tr > th:first-child, +.widget .table:not(td .table) > tfoot > tr > th:first-child, +.widget .table:not(td .table) > thead > tr > td:first-child, +.widget .table:not(td .table) > tbody > tr > td:first-child, +.widget .table:not(td .table) > tfoot > tr > td:first-child { + padding-left: 20px; +} + +/* the last cell in the table should have 20px padding instead of 5px to match all other widgets */ +.widget .table:not(td .table) > thead > tr > th:last-child, +.widget .table:not(td .table) > tbody > tr > th:last-child, +.widget .table:not(td .table) > tfoot > tr > th:last-child, +.widget .table:not(td .table) > thead > tr > td:last-child, +.widget .table:not(td .table) > tbody > tr > td:last-child, +.widget .table:not(td .table) > tfoot > tr > td:last-child { + padding-right: 20px; +} + +/* tables inside widgets should extend the full width of the widget, with 20px table cell padding padding on the left and right */ +.widget-body:not(.no-padding) > .table, +.widget-body:not(.no-padding) > .widget-content > .table { + margin: 0 -20px; + width: calc(100% + 40px); + max-width: calc(100% + 40px); +} + .input-group-addon { color: var(--text-input-group-addon-color); background-color: var(--bg-input-group-addon-color); diff --git a/app/docker/views/containers/edit/container.html b/app/docker/views/containers/edit/container.html index 3d86871cc..9b7033788 100644 --- a/app/docker/views/containers/edit/container.html +++ b/app/docker/views/containers/edit/container.html @@ -146,7 +146,7 @@
Name | +Name | {{ $ctrl.state.release.name }} |
Chart | +Chart | {{ $ctrl.state.release.chart }} |
App version | +App version | {{ $ctrl.state.release.app_version }} | diff --git a/app/kubernetes/views/cluster/node/node.html b/app/kubernetes/views/cluster/node/node.html index b2cadabac..e0fa631f3 100644 --- a/app/kubernetes/views/cluster/node/node.html +++ b/app/kubernetes/views/cluster/node/node.html @@ -11,7 +11,7 @@