From a9ce4a751f09f86de88759b3d167e6d4709cdf69 Mon Sep 17 00:00:00 2001 From: Anna Stakhova Date: Tue, 29 Nov 2016 17:23:45 +0000 Subject: [WebUI] diagram centered The diagram is centered for smal screen --- interface/css/rspamd.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'interface') diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index c78103841..538399669 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -51,12 +51,17 @@ textarea { .chart-content { text-align:center; } - .chart { +.chart { height:400px; margin:0 auto; text-align:center; background:#fff; + display: flex; + justify-content: center; } +.chart svg { + flex: none; +} .notice { display:none; } -- cgit v1.2.3 From 7abace5041f889a0428e22330b4c756d2ef3a170 Mon Sep 17 00:00:00 2001 From: Anna Stakhova Date: Wed, 30 Nov 2016 13:52:00 +0000 Subject: [WebUI] Improve uptime responsive --- interface/js/rspamd.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'interface') diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 3a38a326b..54a261a65 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -323,7 +323,9 @@ var stat_w = []; $.each(data, function (i, item) { var widget = ''; - if (i == 'auth') {} else if (i == 'error') {} else if (i == 'version') { + if (i == 'auth') {} + else if (i == 'error') {} + else if (i == 'version') { widget = '
' + item + '' + i + '
'; $(widget).appendTo(widgets); @@ -353,6 +355,7 @@ $(item).appendTo(widgets); }); $('#statWidgets .left,#statWidgets .right').wrapAll('
  • '); + $('#statWidgets').find('li.pull-right').appendTo('#statWidgets'); $(widgets).show(); stat_timeout = window.setTimeout(statWidgets, 10000); } -- cgit v1.2.3