diff options
| author | 2021-08-25 15:52:28 +0200 | |
|---|---|---|
| committer | 2021-08-25 15:52:28 +0200 | |
| commit | 6304c56b60c553b077ddfeb1bf6fdc66f701fbe5 (patch) | |
| tree | 62703ebdccc0fed937805456325c589feb72f0dc | |
| parent | 7d193bc725f0ef7da06db5d732a84511142b541d (diff) | |
Statistics: dynamically resize (#3799)
* Statistics: dynamically resize
Follow-up on <https://github.com/FreshRSS/FreshRSS/pull/3797>.
* also do 'repartiton'
| -rw-r--r-- | p/scripts/repartition.js | 3 | ||||
| -rw-r--r-- | p/scripts/stats.js | 4 | ||||
| -rw-r--r-- | p/themes/base-theme/template.css | 2 | ||||
| -rw-r--r-- | p/themes/base-theme/template.rtl.css | 2 |
4 files changed, 5 insertions, 6 deletions
diff --git a/p/scripts/repartition.js b/p/scripts/repartition.js index 8837c687b..0bc4e25c2 100644 --- a/p/scripts/repartition.js +++ b/p/scripts/repartition.js @@ -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 diff --git a/p/scripts/stats.js b/p/scripts/stats.js index 6ca598784..7e02868a3 100644 --- a/p/scripts/stats.js +++ b/p/scripts/stats.js @@ -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 diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 1c63fac46..81134185b 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -965,8 +965,6 @@ br { .stat { grid-column: 1 / span 2; - overflow-x: auto; - overflow-y: hidden; } .stat.half { diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css index 927f92def..9b58f4b46 100644 --- a/p/themes/base-theme/template.rtl.css +++ b/p/themes/base-theme/template.rtl.css @@ -965,8 +965,6 @@ br { .stat { grid-column: 1 / span 2; - overflow-x: auto; - overflow-y: hidden; } .stat.half { |
