From: nSedrickm Date: Mon, 27 Apr 2020 20:04:37 +0000 (+0100) Subject: mgr/dashboard: increase Grafana iframe height to avoid scroll bar X-Git-Tag: v16.1.0~1156^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=550762ed872871ca63c44c68fca66ea74bea0cc4;p=ceph.git mgr/dashboard: increase Grafana iframe height to avoid scroll bar Add Grafana component style four with height 1160px Fixes : https://tracker.ceph.com/issues/44966 Signed-off-by: Ngwa Sedrick Meh --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html index fa4ce2f26e8..79dd6daf668 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html @@ -34,7 +34,7 @@ + grafanaStyle="four"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html index bca3f740715..78fb16762cb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html @@ -80,7 +80,7 @@ + grafanaStyle="three"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html index 81e1890e7a3..c8111e02612 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html @@ -45,7 +45,7 @@ + grafanaStyle="four"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html index 7492ddde607..c2c6513888e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html @@ -21,7 +21,7 @@ + grafanaStyle="three"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.scss index bdb90ff7b72..7b43a460ff4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.scss @@ -16,6 +16,10 @@ height: 900px; } +.grafana_four { + height: 1160px; +} + .timepicker { label { font-weight: 700; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts index 18649d48870..7f341a63663 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts @@ -164,7 +164,8 @@ export class GrafanaComponent implements OnInit, OnChanges { this.styles = { one: 'grafana_one', two: 'grafana_two', - three: 'grafana_three' + three: 'grafana_three', + four: 'grafana_four' }; this.settingsService.ifSettingConfigured('api/grafana/url', (url) => {