le-git-graph icon indicating copy to clipboard operation
le-git-graph copied to clipboard

Bug Fix: Preventing Cutoff of Graph on the Left Side

Open AishwaryaAgr opened this issue 1 year ago • 0 comments

Bug Fix for issue #79 This is a commit to help increase support for larger number of lines to run without any one getting cut in a graph.

Original Behavior: Screenshot 2024-10-05 at 1 40 39 PM

Graph gets cut off on the left side ( see yellow ). Worsening User experience

Updated Behavior: Screenshot 2024-10-05 at 2 50 50 PM

Width of the graph container dynamically changes based on the number of lines.

To fix the bug, a new variable named maxX was added and it was updated based on the number of lines. This was then set as the width of the graph Container div

AishwaryaAgr avatar Oct 05 '24 09:10 AishwaryaAgr