Skip to content

Commit 31c505a

Browse files
committed
will switch pie chart colors for a softer shade and fix h3 spacing
1 parent 9dc8b8e commit 31c505a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/components/css/metric.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
.legend-container {
22
display: flex;
33
flex-direction: column;
4-
align-items: flex-start;
54
width: 170px;
5+
align-items: center;
6+
margin-top: 5px;
67
}
78

9+
.legend-container p {
10+
margin-left: 8px;
11+
}
812
.aggregate-conatiner {
913
display: grid;
1014
grid-template-columns: 1fr 1fr 1fr;

src/components/css/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ h4 {
116116
}
117117

118118
.tabTitle {
119-
margin: 50px 15px;
119+
margin: 20px 15px;
120120
font-weight: bolder;
121121
font-size: 30px;
122122
}

src/components/tabs/Metrics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Metrics = (props) => {
3737
datasets: [
3838
{
3939
label: 'CPU',
40-
backgroundColor: ['rgba(44, 130, 201, 1)', 'rgba(19, 221, 29, 1)'],
40+
backgroundColor: ['#4594ce', '#67f267'],
4141
data: [cpuData, result.cpuPerc],
4242
},
4343
],
@@ -48,7 +48,7 @@ const Metrics = (props) => {
4848
datasets: [
4949
{
5050
label: 'Memory',
51-
backgroundColor: ['rgba(44, 130, 201, 1)', 'rgba(19, 221, 29, 1)'],
51+
backgroundColor: ['#4594ce', '#67f267'],
5252
data: [memoryData, result.memPerc],
5353
},
5454
],

0 commit comments

Comments
 (0)