From 166a58a68513734ae5d1191c33bb9f760d84d5d6 Mon Sep 17 00:00:00 2001 From: Sergei Birukov Date: Wed, 13 Mar 2024 13:24:24 +0300 Subject: [PATCH] Fix charts on mobile --- src/www/css/app.css | 10 +++++----- src/www/index.html | 6 +++--- src/www/js/app.js | 13 +++++++++---- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/www/css/app.css b/src/www/css/app.css index 00837d4c..9c6c85fd 100644 --- a/src/www/css/app.css +++ b/src/www/css/app.css @@ -1141,11 +1141,6 @@ video { padding-bottom: 0.75rem; } -.py-5 { - padding-top: 1.25rem; - padding-bottom: 1.25rem; -} - .pb-1 { padding-bottom: 0.25rem; } @@ -1597,6 +1592,11 @@ video { padding-right: 0px; } + .md\:py-5 { + padding-top: 1.25rem; + padding-bottom: 1.25rem; + } + .md\:pb-0 { padding-bottom: 0px; } diff --git a/src/www/index.html b/src/www/index.html index 25173644..2b1b7ba8 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -77,17 +77,17 @@ class="relative overflow-hidden border-b last:border-b-0 border-gray-100 dark:border-neutral-600 border-solid"> -
+
-
+
-
+
diff --git a/src/www/js/app.js b/src/www/js/app.js index 23252663..b0166129 100644 --- a/src/www/js/app.js +++ b/src/www/js/app.js @@ -86,6 +86,10 @@ new Vue({ animations: { enabled: false, }, + parentHeightOffset: 0, + sparkline: { + enabled: true, + } }, colors: [], stroke: { @@ -117,10 +121,10 @@ new Vue({ show: false, }, axisTicks: { - show: true, + show: false, }, axisBorder: { - show: true, + show: false, }, }, yaxis: { @@ -184,8 +188,9 @@ new Vue({ } // Debug - // client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000; - // client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000; + client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000; + client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000; + client.latestHandshakeAt = new Date(); this.clientsPersist[client.id].transferRxCurrent = client.transferRx - this.clientsPersist[client.id].transferRxPrevious; this.clientsPersist[client.id].transferRxPrevious = client.transferRx;