]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: New Landing Page: Milestone 2
authoralfonsomthd <almartin@redhat.com>
Thu, 27 Sep 2018 16:02:34 +0000 (18:02 +0200)
committeralfonsomthd <almartin@redhat.com>
Wed, 3 Oct 2018 12:24:31 +0000 (14:24 +0200)
Fix: cluster status popover on top (it was under another card).

CSS adjustments.

Fixes: https://tracker.ceph.com/issues/27050
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.scss
src/pybind/mgr/dashboard/frontend/src/styles.scss

index 61695902e2c42cb540f825dbba6c8e063079f7fa..85bd35b06b4d0e02bb4e8ff31c41aec2affd8a18 100644 (file)
           </li>
         </ul>
       </ng-template>
-      <div class="health-popover-wrapper">
-        <div [ngStyle]="contentData.health.status | healthColor"
-             [popover]="contentData.health.checks.length > 0 ? healthChecks : ''"
-             triggers=""
-             #healthChecksTarget="bs-popover"
-             placement="bottom">
-          {{ contentData.health.status }}
-        </div>
+      <div [ngStyle]="contentData.health.status | healthColor"
+           [popover]="contentData.health.checks.length > 0 ? healthChecks : ''"
+           triggers=""
+           #healthChecksTarget="bs-popover"
+           placement="bottom"
+           container="body"
+           containerClass="info-card-popover-cluster-status">
+        {{ contentData.health.status }}
       </div>
     </cd-info-card>
 
index a4e6e1769f34fc93e675ce73430cb50174fa4b42..2aa02386c643b72422277648e29cc9d9dcf7ff62 100644 (file)
@@ -1,7 +1,5 @@
 @import '../../../../defaults';
 
-$popover-text-font-size: 10px;
-
 .cd-container-flex {
   margin: 0;
   padding: 0;
@@ -50,34 +48,6 @@ cd-info-card {
   padding: 0 0.5vw 0 0.5vw;
 }
 
-::ng-deep .health-popover-wrapper {
-  position: relative;
-
-  .popover {
-    position: absolute;
-    width: 112%;
-    max-height: 16vh;
-    min-width: unset !important;
-    max-width: unset !important;
-
-    .popover-body {
-      max-width: 100%;
-      max-height: 16vh;
-      font-size: $popover-text-font-size;
-    }
-  }
-
-  @media (max-width: 1399px) {
-    .popover {
-      width: 118%;
-
-      .popover-body {
-        max-width: 100%;
-      }
-    }
-  }
-}
-
 ::ng-deep .pg-status-popover-wrapper {
   position: relative;
 
@@ -90,8 +60,8 @@ cd-info-card {
 
     .popover-body {
       max-width: 100%;
-      max-height: 20vh;
-      font-size: $popover-text-font-size;
+      max-height: 19vh;
+      font-size: 12px;
     }
   }
 }
index 799281e0ac600e0e04ff1c5138ae4cb5cd857216..0c45623d704eeb7217aa3276599f33f3343fc6e7 100644 (file)
@@ -300,3 +300,31 @@ uib-accordion .panel-title,
 .nav-tabs {
   margin-bottom: 15px;
 }
+
+.info-card-popover-cluster-status {
+  max-width: 23vw;
+  max-height: 20vh;
+
+  .popover-body {
+    max-width: 100%;
+    max-height: 19vh;
+    font-size: 12px;
+  }
+}
+
+@media (max-width: 1199px) {
+  .info-card-popover-cluster-status {
+    max-width: 31vw;
+  }
+}
+
+@media (max-width: 991px) {
+  .info-card-popover-cluster-status {
+    max-width: 46vw;
+  }
+}
+@media (max-width: 767px) {
+  .info-card-popover-cluster-status {
+    max-width: 83vw;
+  }
+}