Make close icon fill more space #7239
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


While working on cleaning up @nextcloud/gallery iconset, I noticed that the .icon-close SVG is disproportionately smaller. It turns out it had a lot more empty space in SVG than other icons. This is only visible when that icon is placed inline with another icon, as is the case in the gallery app.
EDIT: outdated screenshots; look at next comment

Old
close.svghad more than 3px margin within SVG; after this PR, it will have 1px. Here's a before:and after:

Please notice that in the searchbox, icon gets bigger. @nextcloud/designers is this OK? If not, let me know so I can add:
background-size: 12px;in styles.scss (line 202)
P.S. I think in the sidebar, this icon should be as large as it is in this PR, because it doesn't make sense for the most-clicked icon to be smaller than purely visual ones.