Merge pull request #263 from djbadders/develop

Fixed TCV for sales analyser and tweaked font size for tables
This commit is contained in:
HojouFotytu 2021-02-18 00:32:54 +09:00 committed by GitHub
commit d6279b745d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ namespace Monitor.Pages
double AvailableBalance = PTData.GetCurrentBalance(); double AvailableBalance = PTData.GetCurrentBalance();
foreach (Core.Main.DataObjects.PTMagicData.DCALogData dcaLogEntry in PTData.DCALog) 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; totalCurrentValue = totalCurrentValue + AvailableBalance;
} }

View File

@ -132,13 +132,13 @@ a:active {
.table { .table {
color : white; color : white;
font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 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 <div> to 30px */ /* If the screen size is 400px wide or less, set the font-size of <div> to 30px */
@media screen and (max-width: 400px) { @media screen and (max-width: 400px) {
.table { .table {
font-size: 10px; font-size: 9px;
} }
} }