Skip to content

Commit

Permalink
fix: put income on left and expense on right always, hide when 0 (#2775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigatok committed May 18, 2024
1 parent 99ab8db commit 201f0fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function CustomLabel({
width: barWidth,
height: barHeight,
}) {
const valueLengthOffset = value.toString().length < 5 ? -40 : 20;
const valueLengthOffset = 20;

const yOffset = barHeight < 25 ? 105 : y;

Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2775.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [Tigatok]
---

Adds income on left and expense on right always. Hide bar if value is 0.

0 comments on commit 201f0fd

Please sign in to comment.