Make close icon fill more space#7239
Merged
jancborchardt merged 2 commits intomasterfrom Nov 22, 2017
Merged
Conversation
Signed-off-by: Marin Treselj <marin@pixelipo.com>
Signed-off-by: Marin Treselj <marin@pixelipo.com>
Contributor
Author
Codecov Report
@@ Coverage Diff @@
## master #7239 +/- ##
=========================================
Coverage 50.84% 50.84%
Complexity 24548 24548
=========================================
Files 1585 1585
Lines 93804 93804
Branches 1354 1354
=========================================
Hits 47698 47698
Misses 46106 46106 |
Member
|
👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.