sindresorhus / Settings

⚙ Add a settings window to your macOS app in minutes
MIT License
1.45k stars 100 forks source link

change section content alignment to center #56

Closed L1cardo closed 3 years ago

L1cardo commented 4 years ago

This is how it was : image

sindresorhus commented 4 years ago

This really depends on whether the section contains multiple elements or just one. For just one, it definitely makes sense to center, but when you have multiple elements, it should be top-aligned.

Example from System Preferences:

Screenshot 2020-06-15 at 13 19 43

// @fredyshox

sindresorhus commented 4 years ago

@L1cardo Thoughts?

L1cardo commented 4 years ago

@L1cardo Thoughts?

Sorry that I saw this just now. How about making the alignment configurable?

sindresorhus commented 4 years ago

Yeah, let's go with that. The doc comment should recommend using .center when it's a single control and .top when multiple.

sindresorhus commented 3 years ago

Bump

L1cardo commented 3 years ago

Preparing the biggest exam in my life, I really don't have time for this recently