Fix: profit and percentage chart labels margin

This commit is contained in:
csrapr 2021-02-12 13:58:50 +00:00 committed by Josh Harvey
parent e59ddf69a7
commit c17ecc770b
5 changed files with 12 additions and 6 deletions

View file

@ -202,7 +202,9 @@ const SystemPerformance = () => {
</Grid>
<Grid container className={classes.gridContainer}>
<Grid item xs={8}>
<Label2>Profit from commissions</Label2>
<Label2 className={classes.labelMargin}>
Profit from commissions
</Label2>
<div className={classes.profitContainer}>
<div className={classes.profitLabel}>
{`${getProfit(transactionsToShow)} ${
@ -223,8 +225,8 @@ const SystemPerformance = () => {
</Grid>
<Grid item xs={4}>
<Grid container>
<Grid item style={{ marginRight: 34 }}>
<Label2>Direction</Label2>
<Grid item>
<Label2 className={classes.labelMargin}>Direction</Label2>
</Grid>
<Grid
item

View file

@ -130,6 +130,10 @@ const styles = {
height: 16,
marginBottom: -2,
marginRight: 4
},
labelMargin: {
marginBottom: 20,
marginRight: 32
}
}

View file

@ -9,4 +9,4 @@
</g>
</g>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 837 B

After

Width:  |  Height:  |  Size: 838 B

Before After
Before After

View file

@ -9,4 +9,4 @@
<line x1="0" y1="3" x2="4" y2="3" id="Line-12"></line>
</g>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 663 B

After

Width:  |  Height:  |  Size: 664 B

Before After
Before After

View file

@ -9,4 +9,4 @@
</g>
</g>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 834 B

After

Width:  |  Height:  |  Size: 835 B

Before After
Before After