drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.app
MIT License
12.11k stars 856 forks source link

Streamline height calculation #34

Closed djm93dev closed 2 months ago

djm93dev commented 2 months ago

Hey there! This pull request makes a small tweak to simplify the calculation for a variable named 'height'. Now, instead of adding 50 and 7 separately, we've combined them into a single constant, making the code cleaner.

vercel[bot] commented 2 months ago

@djm93dev is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

1ilit commented 2 months ago

Hey! Thanks for bringing it up. The reason 50 and 7 are separate is because they correspond to the table header and the colored strip respectively. It's easier to reason about them when they're separate. Good thing you brought this up, I'll replace them with the variables I have for them