Statistics: dynamically resize (#3799)

* Statistics: dynamically resize

Follow-up on <https://github.com/FreshRSS/FreshRSS/pull/3797>.

* also do 'repartiton'
pull/3795/head^2
Frans de Jonge 3 years ago committed by GitHub
parent 7d193bc725
commit 6304c56b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      p/scripts/repartition.js
  2. 4
      p/scripts/stats.js
  3. 2
      p/themes/base-theme/template.css
  4. 2
      p/themes/base-theme/template.rtl.css

@ -13,7 +13,6 @@ function initStats() {
}
const jsonRepartition = document.getElementById('jsonRepartition'),
stats = JSON.parse(jsonRepartition.innerHTML);
jsonRepartition.outerHTML = '';
// Entry per hour
Flotr.draw(document.getElementById('statsEntryPerHour'),
[{
@ -71,4 +70,6 @@ function initStats() {
}
initStats();
window.addEventListener('resize', initStats);
// @license-end

@ -13,7 +13,6 @@ function initStats() {
}
const jsonStats = document.getElementById('jsonStats'),
stats = JSON.parse(jsonStats.innerHTML);
jsonStats.outerHTML = '';
// Entry per day
const avg = [];
for (let i = -31; i <= 0; i++) {
@ -62,4 +61,7 @@ function initStats() {
});
}
initStats();
window.addEventListener('resize', initStats);
// @license-end

@ -965,8 +965,6 @@ br {
.stat {
grid-column: 1 / span 2;
overflow-x: auto;
overflow-y: hidden;
}
.stat.half {

@ -965,8 +965,6 @@ br {
.stat {
grid-column: 1 / span 2;
overflow-x: auto;
overflow-y: hidden;
}
.stat.half {

Loading…
Cancel
Save