From e2e79bdf235d7b282175868a323be23fbac6a587 Mon Sep 17 00:00:00 2001
From: djbadders <34887832+djbadders@users.noreply.github.com>
Date: Wed, 17 Feb 2021 13:07:31 +0000
Subject: [PATCH 1/2] Tweaked font size in tables to cope better when many
strategies being used
---
Monitor/wwwroot/assets/css/custom.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Monitor/wwwroot/assets/css/custom.css b/Monitor/wwwroot/assets/css/custom.css
index 165ca0a..dbdce4a 100644
--- a/Monitor/wwwroot/assets/css/custom.css
+++ b/Monitor/wwwroot/assets/css/custom.css
@@ -132,13 +132,13 @@ a:active {
.table {
color : white;
font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size : 12px;
+ font-size : 11px;
}
/* If the screen size is 400px wide or less, set the font-size of
to 30px */
@media screen and (max-width: 400px) {
.table {
- font-size: 10px;
+ font-size: 9px;
}
}
From 4fdd0ed112598fd1057aad77e9b7d856fa45987b Mon Sep 17 00:00:00 2001
From: djbadders <34887832+djbadders@users.noreply.github.com>
Date: Wed, 17 Feb 2021 15:28:13 +0000
Subject: [PATCH 2/2] Fix issue with Sales Analyzer showing no TCV
---
Monitor/Pages/SalesAnalyzer.cshtml.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Monitor/Pages/SalesAnalyzer.cshtml.cs b/Monitor/Pages/SalesAnalyzer.cshtml.cs
index 9f74924..37725f3 100644
--- a/Monitor/Pages/SalesAnalyzer.cshtml.cs
+++ b/Monitor/Pages/SalesAnalyzer.cshtml.cs
@@ -161,7 +161,7 @@ namespace Monitor.Pages
double AvailableBalance = PTData.GetCurrentBalance();
foreach (Core.Main.DataObjects.PTMagicData.DCALogData dcaLogEntry in PTData.DCALog)
{
- totalCurrentValue = totalCurrentValue + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / dcaLogEntry.Leverage);
+ totalCurrentValue = totalCurrentValue + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / dcaLogEntry.Leverage != 0 ? dcaLogEntry.Leverage : 1);
}
totalCurrentValue = totalCurrentValue + AvailableBalance;
}