Просмотр исходного кода

graph: set max width for legend tables.

ref #2385
Vladimir Kolobaev 8 лет назад
Родитель
Сommit
8083079eea
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      public/sass/components/_panel_graph.scss

+ 7 - 1
public/sass/components/_panel_graph.scss

@@ -133,6 +133,9 @@
     padding-left: 7px;
     padding-left: 7px;
     text-align: left;
     text-align: left;
     width: 95%;
     width: 95%;
+    max-width: 650px;
+    text-overflow: ellipsis;
+    overflow: hidden;
   }
   }
 
 
   .graph-legend-series:nth-child(odd) {
   .graph-legend-series:nth-child(odd) {
@@ -264,7 +267,10 @@
   .graph-tooltip-series-name {
   .graph-tooltip-series-name {
     display: table-cell;
     display: table-cell;
     padding: 0.15rem;
     padding: 0.15rem;
-  }
+    max-width: 650px;
+    text-overflow: ellipsis;
+    overflow: hidden;
+   }
 
 
   .graph-tooltip-value {
   .graph-tooltip-value {
     display: table-cell;
     display: table-cell;