Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase SelectionCountField margins (backport #979) #988

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 27, 2024

Changes

We had no padding on the right side of the SelectionCountField and it looked weird when there was a separator after it (the separator removes padding between different status bar fields). Changes:

  • I added margins (--iui-size-xs) from both left and right sides now. I chose margins instead of paddings because padding is considered a part of the width so it basically decreased the min-width that we set (more specifically it would decrease the space reserved for more digits).
  • Changed the min-width from --iui-size-2xl (equivalent to 4rem) to 3.75rem. This slightly decreases the min width of the component and is perfect to fit 5 digits without shifting other status bar content. I made this change because we previously had padding-left which is now switched to margin-left (again, the padding eats into the width and margin does not) so the freed up space was not needed anymore.

Adding some screenshots for comparison. Note that the first two images have separators.

Before:

image
image
image

After:

image
image
image

Fixes #978.

Testing

Tested in test-app.


This is an automatic backport of pull request #979 done by [Mergify](https://mergify.com).

* Increase SelectionCount margins

* Update changelog

* Add PR link

* Remove NextVersion message and simplify css

(cherry picked from commit f249f16)
@mergify mergify bot requested a review from a team as a code owner August 27, 2024 22:10
@ignas-k ignas-k enabled auto-merge (squash) August 27, 2024 22:10
@ignas-k ignas-k merged commit 3e90b0c into release/4.16.x Aug 27, 2024
17 checks passed
@ignas-k ignas-k deleted the mergify/bp/release/4.16.x/pr-979 branch August 27, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant