Implement symmetric text padding from edges#46
Implement symmetric text padding from edges#46mkhuzaima wants to merge 7 commits intogithub:mainfrom
Conversation
|
Thanks @mkhuzaima for the contribution, it's appreciated! ✨ And your patience for me to review! I've been taking a look through, and it looks like a great start! I've been thinking about an additional tweak that could be made (I realised I wasn't as clear as I could have been in my original issue!) I think we're looking to balance the space between the Invertocat on the left hand edge with the text on the right hand edge. In the current implementation, the distance between left edge and username is the same as the right edge and year, it looks a little unbalanced compared to the left hand side. So perhaps something like, the distances between these items should be the same:
What do you think? 😄 |
Thanks so much for reviewing my contribution and for the thoughtful feedback—I really appreciate it! 😊 I see what you mean about balancing the spacing to make it feel more consistent. That’s a great idea, and I’ll work on tweaking it to align better with what you described. I’ll update the PR as soon as I’ve got it sorted! Thanks again for your time and guidance—it’s been great working on this! |
|
Hey @mkhuzaima, hope you're doing good! Just wanted to check in on how you're progressing, and if you need anything from me at all? Please let me know when you'd like another review 😄 |
@chrisreddington I have updated the PR with the changes suggested and would appreciate it if you could review them at your convenience. |
|
I think this might have been incidentally solved with #69. That PR also introduced left/right justification. In
|
@chriswblake does that PR also implement the same spacing between logo and username? |
|
@chriswblake By applying symmetric padding, it can easily be adjusted to any percentage, not necessarily 3. Just change in one constant will reflect changes at 3 places, and later, it can be taken from the user as well. I think the primary purpose of this PR was to make padding symmetric. If the distance will always be 3%, then, the current implementation is good, and this PR doesn't add any more value. But, I @chrisreddington what are your thoughts? |
|
I think with the refactors from #69, the majority of the needs have been solved here. The approach has changed enough in that PR that we'd probably need a fresh PR/new approach if we did want to fix any nitpicks (e.g. spacing between the logo/username). But I think the PR solves the main challenges that were being brought up, so we can close this PR for now 😄 Thanks again for jumping in here though @mkhuzaima! 🙏 |
No problem. 😊 |






Username and year are now have same padding from the edges. Padding is kept 5% for now, and, is customizable.
I have used alignment alongwith DrawStringWrapped method, to align username and year on the left and right side of
gg.Contextrespectively.Fixes #12.