From 5e3161a3f96335ce906c0248ac888a3a55509c2a Mon Sep 17 00:00:00 2001 From: skomerko <168652295+skomerko@users.noreply.github.com> Date: Sun, 22 Sep 2024 16:46:22 +0200 Subject: [PATCH] WebUI: Improve statistics window --- src/webui/www/private/css/style.css | 23 +++++++++++++++++++++-- src/webui/www/private/scripts/mocha-init.js | 4 ++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/webui/www/private/css/style.css b/src/webui/www/private/css/style.css index 1f5f87ebc..d140ad1bc 100644 --- a/src/webui/www/private/css/style.css +++ b/src/webui/www/private/css/style.css @@ -758,8 +758,27 @@ td.statusBarSeparator { } /* Statistics window */ -.statisticsValue { - text-align: right; +#statisticspage * { + box-sizing: border-box; +} + +#statisticsContent { + & table { + background-color: var(--color-background-default); + border-radius: 6px; + margin-bottom: 6px; + padding: 6px 10px; + + & .statisticsValue { + text-align: right; + } + } + + & h3 { + color: var(--color-text-default); + margin-bottom: 1px; + padding: 2px; + } } /* Search tab */ diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 362e28e1d..2f24ed2e2 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -427,8 +427,8 @@ const initializeWindows = function() { contentURL: new URI("views/statistics.html").toString(), maximizable: false, padding: 10, - width: loadWindowWidth(id, 275), - height: loadWindowHeight(id, 370), + width: loadWindowWidth(id, 285), + height: loadWindowHeight(id, 415), onResize: window.qBittorrent.Misc.createDebounceHandler(500, (e) => { saveWindowSize(id); }) -- 2.11.4.GIT