File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed
admin/src/main/resources/io/buoyant/admin Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -205,3 +205,26 @@ nav ul.navbar-nav {
205
205
padding-left : 15px ;
206
206
margin : 20px 0 30px 0 ;
207
207
}
208
+
209
+ /*
210
+ * For wider screens
211
+ */
212
+
213
+ @media (min-width : 1400px ) {
214
+ .navbar-container {
215
+ width : 100vw ;
216
+ }
217
+
218
+ .dashboard-container {
219
+ margin : 0 1.5vw 0 ;
220
+ min-width : 96vw ;
221
+ }
222
+
223
+ .row .proc-info , .router , .clients .router-graph {
224
+ min-width : 96vw ;
225
+ }
226
+
227
+ .router > div {
228
+ width : 100% ;
229
+ }
230
+ }
Original file line number Diff line number Diff line change 1
1
/* globals UpdateableChart */
2
2
/* exported ClientSuccessRateGraph */
3
3
var ClientSuccessRateGraph = ( function ( ) {
4
+ var columnGridPadding = 27 ; // from our css grid setup
4
5
var neutralLineColor = "#878787" ; // greys.neutral
5
6
6
7
function createChartLegend ( successLineColor ) {
@@ -32,7 +33,10 @@ var ClientSuccessRateGraph = (function() {
32
33
} ,
33
34
$canvas [ 0 ] ,
34
35
function ( ) {
35
- return $chartEl . width ( ) ;
36
+ var containerWidth = $ ( ".router-clients" ) . first ( ) . width ( ) ;
37
+ var metricsWidth = $ ( ".metrics-container" ) . first ( ) . width ( ) ;
38
+
39
+ return containerWidth - metricsWidth - columnGridPadding ; // get this to display nicely on wide screens
36
40
} ,
37
41
timeseriesParamsFn
38
42
) ;
Original file line number Diff line number Diff line change 1
1
/* globals Query, UpdateableChart */
2
2
/* exported CombinedClientGraph */
3
3
var CombinedClientGraph = ( function ( ) {
4
+ var defaultWidth = 1181 ;
5
+
4
6
function clientToMetric ( client ) {
5
7
return { name : client , color : "" } ; //TODO: move to clientName only after v2 migration
6
8
}
@@ -34,7 +36,8 @@ var CombinedClientGraph = (function() {
34
36
} ,
35
37
$root [ 0 ] ,
36
38
function ( ) {
37
- return 1161 ;
39
+ var containerWidth = $ ( ".router-clients" ) . first ( ) . width ( ) ; // get this to display nicely on wide screens
40
+ return containerWidth || defaultWidth ;
38
41
} ,
39
42
timeseriesParams
40
43
) ;
You can’t perform that action at this time.
0 commit comments