nautobot / nautobot-app-floor-plan

Easily view floor plans in Nautobot
https://docs.nautobot.com/projects/floor-plan/en/latest/
Other
11 stars 5 forks source link

Y Axis with large starting seed causes graphical bleeding #116

Closed joewesch closed 1 month ago

joewesch commented 2 months ago

Environment

Expected Behavior

Large Y Axis values (e.g., AAAA, 10000, etc.) looks correct on the side of the grid

Observed Behavior

Screenshot 2024-08-16 at 8 48 07 AM Screenshot 2024-08-16 at 8 48 40 AM

Steps to Reproduce

  1. Create a floor plan with large Y Axis seed
djhoward12 commented 2 months ago

Made some modifications to move the Y_label_text to the left of the grid when the digits are more than two. Attached images of proposed change for review.

Numbers

2_numbers 3_numbers 4_numbers 5_numbers

Letters

2_letters 3_letters 4_letters
joewesch commented 2 months ago

I still feel like the 2 characters doesn't look good. It is over the line in certain situations and not centered. Can you change it so anything over 1 characters shifts it outside?