diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-30 13:58:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 13:58:43 +0000 |
commit | c76e16b2273bea5885ec2754601d90dedb717f53 (patch) | |
tree | 3e015c4e6a02043727b83e6dd83472b1ae8e7230 /interface | |
parent | 48ee48af5f1edd191b650e29d583307813e70503 (diff) | |
parent | 7abace5041f889a0428e22330b4c756d2ef3a170 (diff) | |
download | rspamd-c76e16b2273bea5885ec2754601d90dedb717f53.tar.gz rspamd-c76e16b2273bea5885ec2754601d90dedb717f53.zip |
Merge pull request #1209 from AnnaStakhova/master
Make status responsive
Diffstat (limited to 'interface')
-rw-r--r-- | interface/css/rspamd.css | 7 | ||||
-rw-r--r-- | interface/js/rspamd.js | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index f0817d0ff..7a2f4b920 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; } diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 0311044b1..15b64d213 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 = '<div class="left"><strong>' + item + '</strong>' + i + '</div>'; $(widget).appendTo(widgets); @@ -353,6 +355,7 @@ $(item).appendTo(widgets); }); $('#statWidgets .left,#statWidgets .right').wrapAll('<li class="stat-box pull-right"><div class="widget"></div></li>'); + $('#statWidgets').find('li.pull-right').appendTo('#statWidgets'); $(widgets).show(); stat_timeout = window.setTimeout(statWidgets, 10000); } |