diff options
Fixed a set of bugsmain
Signed-off-by: Marc Pervaz Boocha <mboocha@sudomsg.xyz>
Diffstat (limited to 'src/expense/static')
-rw-r--r-- | src/expense/static/script.js | 4 | ||||
-rw-r--r-- | src/expense/static/style.css | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/expense/static/script.js b/src/expense/static/script.js index 810dc0e..c54ea78 100644 --- a/src/expense/static/script.js +++ b/src/expense/static/script.js @@ -81,8 +81,8 @@ function createGraphs(root, data, labels) { root.append(graphBar) graphBar.style.display = "grid" graphBar.style.gridAutoFlow = "column" - pieChart(graphBar, group_cat(data.filter(({ amount }) => amount < 0), labels), "Inflow") - pieChart(graphBar, group_cat(data.filter(({ amount }) => amount > 0), labels), "Outflow") + pieChart(graphBar, group_cat(data.filter(({ amount }) => amount < 0), labels), "Outflow") + pieChart(graphBar, group_cat(data.filter(({ amount }) => amount > 0), labels), "Inflow") } /** diff --git a/src/expense/static/style.css b/src/expense/static/style.css index 4438cf6..e1d7463 100644 --- a/src/expense/static/style.css +++ b/src/expense/static/style.css @@ -14,6 +14,7 @@ nav { background: rgb(117, 117, 117); display: flex; align-items: center; + padding: 0 3rem; } nav>h1 { |