From 6c948d8f3b54078edc0ea9908aac69cdeaebbc67 Mon Sep 17 00:00:00 2001 From: Fernando Terra <79578735+fterra-encora@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:14:04 -0300 Subject: [PATCH] fix(fe): fix data-table columns' width (#1289) * fix: fix columns' width * refactor: create css class padding-column --- frontend/src/assets/styles/global.scss | 16 ++++++++-------- frontend/src/pages/SearchPage.vue | 6 ++---- frontend/src/pages/SubmissionListPage.vue | 6 +++--- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/frontend/src/assets/styles/global.scss b/frontend/src/assets/styles/global.scss index 50681690d1..2fb561569e 100644 --- a/frontend/src/assets/styles/global.scss +++ b/frontend/src/assets/styles/global.scss @@ -1283,7 +1283,7 @@ cds-modal { } .paginator { - width: calc(100vw - 16rem); + width: 100%; } .headers-compact ~ .full { @@ -1490,11 +1490,6 @@ cds-table-header-cell { background: var(--light-theme-layer-accent-layer-accent-01, #dfdfe1); } -:is(cds-table-header-cell, cds-table-cell):is(:first-child, :last-child) { - padding: 0; - width: 1.5rem; -} - .col-6_75rem { width: 6.75rem; } @@ -1511,6 +1506,11 @@ cds-table-header-cell { width: 7.0625rem; } +.padding-column { + padding: 0; + width: 1.5rem; +} + cds-pagination { border-radius: 0px 0px 4px 4px; border-top: 1px solid var(--light-theme-border-border-subtle-01, #dfdfe1); @@ -1874,7 +1874,7 @@ div.internal-grouping-01:has(svg.warning) span.body-compact-01 { } .paginator { - width: 100vw; + width: 100%; } .submission-details--title svg { width: 5rem; @@ -1985,7 +1985,7 @@ div.internal-grouping-01:has(svg.warning) span.body-compact-01 { } .paginator { - width: 100vw; + width: 100%; } cds-table { width: 82rem; diff --git a/frontend/src/pages/SearchPage.vue b/frontend/src/pages/SearchPage.vue index 0eda586c07..07a877b0a1 100644 --- a/frontend/src/pages/SearchPage.vue +++ b/frontend/src/pages/SearchPage.vue @@ -246,17 +246,16 @@ onMounted(() => {
- + - + Client number Acronym Name Type City Status - @@ -276,7 +275,6 @@ onMounted(() => { {{ row.clientStatus }}
- diff --git a/frontend/src/pages/SubmissionListPage.vue b/frontend/src/pages/SubmissionListPage.vue index 022aa61c14..029f21b509 100644 --- a/frontend/src/pages/SubmissionListPage.vue +++ b/frontend/src/pages/SubmissionListPage.vue @@ -129,16 +129,16 @@ const summitSvg = useSvg(summit);
- + - + Client name Client type District Submitted on Submission status - +