From: Nizamudeen A Date: Tue, 3 Oct 2023 12:03:13 +0000 (+0530) Subject: mgr/dashboard: fix rgw inventory card and broken shadows X-Git-Tag: v19.0.0~337^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4c6c5787cb338995955b4a30fed9c348337e721c;p=ceph.git 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 --- 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 8faa23a5b2d0..faf040366fd3 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 5d558324319d..49ab49bc81b5 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 f50a6e6c1516..0bcc48b4be2d 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 e2c50c8b3522..4e193717252c 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 e69de29bb2d1..29901b832d3a 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 deb408525de8..60c0af60306d 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}">