Przeglądaj źródła

AMBARI-8548. Alerts UI: Layout for alerts is broken with wrap around for hostnames.(xiwang)

Xi Wang 10 lat temu
rodzic
commit
f5ed63590a
1 zmienionych plików z 15 dodań i 5 usunięć
  1. 15 5
      ambari-web/app/styles/alerts.less

+ 15 - 5
ambari-web/app/styles/alerts.less

@@ -433,7 +433,7 @@
     max-height: 340px;
     max-height: 340px;
     width: 100%;
     width: 100%;
     .alert-list-wrap {
     .alert-list-wrap {
-      padding: 10px 10px 10px 20px;
+      padding: 10px 5px;
       border-top: 1px solid #CCC;
       border-top: 1px solid #CCC;
       border-bottom: 1px solid #CCC;
       border-bottom: 1px solid #CCC;
     }
     }
@@ -443,17 +443,17 @@
       .status-icon {
       .status-icon {
         padding-left: 5px;
         padding-left: 5px;
         float: left;
         float: left;
-        width: 10%;
+        width: 12%;
         min-width: 20px;
         min-width: 20px;
       }
       }
       .name-text {
       .name-text {
-        padding-left: 10px;
-        width: 35%;
+        padding-left: 5px;
         float: left;
         float: left;
+        width: 33%;
       }
       }
       .service-text {
       .service-text {
         padding-left: 5px;
         padding-left: 5px;
-        width: 30%;
+        width: 33%;
         float: left;
         float: left;
         .na-text {
         .na-text {
           color: #808080;
           color: #808080;
@@ -461,10 +461,20 @@
       }
       }
       .last-triggered-text {
       .last-triggered-text {
         padding-left: 5px;
         padding-left: 5px;
+        float: left;
+        width: 18%;
         color: #808080;
         color: #808080;
         font-size: 12px;
         font-size: 12px;
       }
       }
     }
     }
+    .alert-list-line-cursor:before,.alert-list-line-cursor:after {
+      display: table;
+      line-height: 0;
+      content: "";
+    }
+    .alert-list-line-cursor:after {
+      clear: both;
+    }
     .show-more {
     .show-more {
       width: 98.8%;
       width: 98.8%;
       min-height: 20px;
       min-height: 20px;