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>
</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>
@import '../../../../defaults';
-$popover-text-font-size: 10px;
-
.cd-container-flex {
margin: 0;
padding: 0;
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;
.popover-body {
max-width: 100%;
- max-height: 20vh;
- font-size: $popover-text-font-size;
+ max-height: 19vh;
+ font-size: 12px;
}
}
}
.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;
+ }
+}