]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: increase Grafana iframe height to avoid scroll bar 37182/head
authornSedrickm <nsedrick101@gmail.com>
Mon, 27 Apr 2020 20:04:37 +0000 (21:04 +0100)
committerLaura Paduano <lpaduano@suse.com>
Wed, 16 Sep 2020 06:43:30 +0000 (08:43 +0200)
Add Grafana component style four with height 1160px
Fixes : https://tracker.ceph.com/issues/44966
Signed-off-by: Ngwa Sedrick Meh <nsedrick101@gmail.com>
(cherry picked from commit 550762ed872871ca63c44c68fca66ea74bea0cc4)

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html
- We are still using the tabset style in octopus, while we use the ngbNav directive in master;
  Also there are some more tabs in master vs. octopus which are not related to this PR and thus
  are not included

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.scss
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts

index ef072c8af68085392881e6dc3183731ed2873069..13edafb0ef1b44c200607ba316038c43acebf387 100644 (file)
@@ -19,7 +19,7 @@
        *ngIf="permissions.grafana.read">
     <cd-grafana [grafanaPath]="'host-details?var-ceph_hosts=' + selectedHostname"
                 uid="rtOg0AiWz"
-                grafanaStyle="three">
+                grafanaStyle="four">
     </cd-grafana>
   </tab>
   <tab heading="Device health"
index 3769577cb3786c9074d7e1e5da5ff37a74e79b3c..3d9183814e192940e5a9ce32dccdf543c2600a2e 100644 (file)
@@ -62,7 +62,7 @@
        heading="Performance Details">
     <cd-grafana [grafanaPath]="'osd-device-details?var-osd=osd.' + osd['id']"
                 uid="CrAHE0iZz"
-                grafanaStyle="GrafanaStyles.two">
+                grafanaStyle="three">
     </cd-grafana>
   </tab>
 
index 84faaf14eef55d9072567de1a8beb592e19962ba..bc1bc78dc23a62fa5ad9260db01f0495b23af8f0 100644 (file)
@@ -44,7 +44,7 @@
        heading="Overall Performance">
     <cd-grafana [grafanaPath]="'osd-overview?'"
                 uid="lo02I1Aiz"
-                grafanaStyle="three">
+                grafanaStyle="four">
     </cd-grafana>
   </tab>
 </tabset>
index a1515e02b7840d6367e3f18e1ed11593b52c8783..5dc26d94dbc7254cce971d6171dc5bd59c13c918 100644 (file)
@@ -14,7 +14,7 @@
     <cd-grafana [grafanaPath]="'ceph-pool-detail?var-pool_name='
                 + selection['pool_name']"
                 uid="-xyV8KCiz"
-                grafanaStyle="one">
+                grafanaStyle="three">
     </cd-grafana>
   </tab>
   <tab *ngIf="selection.type === 'replicated'"
index 9a095d7e9bad31c3370f4d0480539c930af9389f..63860a7f84942cf729c6d4c7ec9b788a8075a4b4 100644 (file)
   height: 900px;
 }
 
+.grafana_four {
+  height: 1160px;
+}
+
 .timepicker {
   label {
     font-weight: 700;
index 7d8c49095bdc98b786b5da7f2be5fbdd5317bb19..94f41a8d43f7bb9f24eccfc5cfd967a06e75b473 100644 (file)
@@ -154,7 +154,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) => {