From 4c6c5787cb338995955b4a30fed9c348337e721c Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Tue, 3 Oct 2023 17:33:13 +0530 Subject: [PATCH] mgr/dashboard: fix rgw inventory card and broken shadows Mess up of the dashboard landing page layout fixes PR Fixes: http://tracker.ceph.com/issues/62961 Signed-off-by: Nizamudeen A --- .../dashboard/dashboard-v3.component.html | 121 +++++++----------- .../dashboard/dashboard-v3.component.scss | 5 - .../rgw-overview-dashboard.component.html | 119 ++++++++--------- .../card-row/card-row.component.html | 59 +++++---- .../card-row/card-row.component.scss | 4 + .../components/card/card.component.html | 2 +- .../shared/components/card/card.component.ts | 2 + 7 files changed, 141 insertions(+), 171 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html index 8faa23a5b2d0b..faf040366fd35 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html @@ -51,89 +51,62 @@ i18n-title class="pt-4" aria-label="Inventory card"> -
-
  • - -
  • -
    + -
  • - -
  • -
    + -
  • - -
  • -
    + + -
  • - -
  • -
    + + -
  • - -
  • -
    + + -
  • - -
  • -
    + + -
  • - -
  • -
    + + -
  • - -
  • -
    + -
  • - -
  • + diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.scss index 5d558324319de..49ab49bc81b55 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.scss @@ -31,8 +31,3 @@ white-space: normal; } } - -.list-group-item { - border: 0; - font-size: 14px; -} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html index f50a6e6c15163..0bcc48b4be2d1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html @@ -4,61 +4,47 @@ i18n-title class="col-sm-3 px-3 d-flex" aria-label="Inventory card"> -
    -
  • - -
  • -
    -
  • - -
  • -
    -
  • - -
  • -
    -
  • - -
  • -
    -
  • - -
  • -
    -
  • - -
  • -
    -
  • - -
  • + + + + + + + + + + + + + + + aria-label="Used Capacity" + [alignItemsCenter]="true" + [justifyContentCenter]="true">

    {{ totalPoolUsedBytes | dimlessBinary}}

    - + aria-label="Avg Object Size" + [alignItemsCenter]="true" + [justifyContentCenter]="true">

    {{ averageObjectSize | dimlessBinary}}

    @@ -129,7 +119,9 @@
    + class="col-lg-3 d-flex justify-content-center align-primary-zone" + [alignItemsCenter]="true" + [justifyContentCenter]="true"> @@ -154,7 +146,7 @@ @@ -163,11 +155,12 @@ [cardTitle]="title" i18n-title cardType="syncCards" - bgColor="bg-color" - borderClass="border-0" + removeBorder="true" class="col-sm-9 col-lg-6" [ngClass]="{ 'border-left': title === 'Data Sync' }" - aria-label="Charts Card"> + aria-label="Charts Card" + [alignItemsCenter]="true" + [justifyContentCenter]="true"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.html index e2c50c8b3522e..4e193717252c3 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.html @@ -1,32 +1,35 @@ -
    - - - - - - - - - - - - - - +
    +
  • + + +
  • + diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.scss index e69de29bb2d1d..29901b832d3a5 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card-row/card-row.component.scss @@ -0,0 +1,4 @@ +.list-group-item { + border: 0; + font-size: 14px; +} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.html index deb408525de85..60c0af60306dc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.html @@ -14,7 +14,7 @@ {{ cardTitle }}
    + [ngClass]="{'d-flex align-items-center': alignItemsCenter, 'justify-content-center': justifyContentCenter}">