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

Fix the space between navigation icon and label #2343

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

GretaD
Copy link
Contributor

@GretaD GretaD commented Nov 4, 2021

there's a lot of space between the icon and the label. On mail app that doesnt look good when we have more than one level submailbox. Even though we removed the option to add more than one level submailbox, the people who added more than one level before we removed it, have problem reading the name of their mailboxes.

before
beforeicon

after
folderlevel

@GretaD GretaD self-assigned this Nov 4, 2021
@GretaD GretaD added the enhancement New feature or request label Nov 4, 2021
@ChristophWurst ChristophWurst changed the title Fix the space between icon and label Fix the space between navivation icon and label Nov 4, 2021
@ChristophWurst ChristophWurst changed the title Fix the space between navivation icon and label Fix the space between navigation icon and label Nov 4, 2021
@raimund-schluessler
Copy link
Contributor

It would also help to correctly align the three dot menus on the right.

@GretaD
Copy link
Contributor Author

GretaD commented Nov 9, 2021

It would also help to correctly align the three dot menus on the right.

and with this you mean to have it always on the right, and not to depend on the mailbox label?

@GretaD GretaD marked this pull request as ready for review November 10, 2021 11:51
@GretaD GretaD added this to the 4.2.0 milestone Nov 10, 2021
@ChristophWurst ChristophWurst modified the milestones: 4.2.0, 5.0.0 Nov 10, 2021
@ChristophWurst
Copy link
Contributor

#1808 was merged and so any change on master is going to be 5.x. we have to backport this

Copy link
Contributor

@raimund-schluessler raimund-schluessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raimund-schluessler
Copy link
Contributor

@GretaD How do you even get more than one level nesting with AppNavigationItem? The component actively prevents that here:
https://github.com/nextcloud/nextcloud-vue/blob/063cb379aae4cf13ab949d1411fad9cf884cb242/src/components/AppNavigationItem/AppNavigationItem.vue#L378-L386

@GretaD
Copy link
Contributor Author

GretaD commented Nov 10, 2021

@GretaD How do you even get more than one level nesting with AppNavigationItem? The component actively prevents that here:

Remove the && top here: https://github.com/nextcloud/mail/blob/e2978c668d11ad2a190bc372315e3d6a11444239/src/components/NavigationMailbox.vue#L58
just for testing

@raimund-schluessler
Copy link
Contributor

And a quick review from @jancborchardt, @skjnldsv or @nimishavijay would be good, since it affects the global layout a bit and I am not the one to judge what is intended there.

@GretaD
Copy link
Contributor Author

GretaD commented Nov 10, 2021

And a quick review from @jancborchardt, @skjnldsv or @nimishavijay would be good, since it affects the global layout a bit and I am not the one to judge what is intended there.

We had a call with Nimisha, so she is aware, but would be nice to have a final look.

@dartcafe
Copy link
Contributor

Is it necessary to indent every level with the width of the icon width? Maybe we could reduce it to 10 or 12px?
current indentation:
grafik
12px:
grafik

Copy link

@nimishavijay nimishavijay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really nice here, but since this a change in the component itself can we be sure that other apps are not affected? Eg. Deck

@raimund-schluessler
Copy link
Contributor

Looks really nice here, but since this a change in the component itself can we be sure that other apps are not affected? Eg. Deck

They sure will be affected. Every app which uses AppNavigationItem and AppNavigationSettings will see this change.

@GretaD
Copy link
Contributor Author

GretaD commented Nov 11, 2021

Looks really nice here, but since this a change in the component itself can we be sure that other apps are not affected? Eg. Deck

All apps that use this component are affected but the scenario with more than one children is only mail(IIRC). The space between icon and label is very wide everywhere, thats why we did it here.

@skjnldsv
Copy link
Contributor

skjnldsv commented Nov 11, 2021

Looks really nice here, but since this a change in the component itself can we be sure that other apps are not affected? Eg. Deck

Every app will be affected. That's why it needs approval from the Designer team 😉
This is a hard change in the way we've been doing things over the last 5 years.
Non-vue components are also not using such layout.

cc @jancborchardt

@skjnldsv skjnldsv added the feature: app-navigation Related to the app-navigation component label Nov 11, 2021
@ChristophWurst
Copy link
Contributor

12px: grafik

I also still think that the space between icon and text looks a bit too big. Reducing that would give us some more space for long text.

@ChristophWurst
Copy link
Contributor

Every app will be affected. That's why it needs approval from the Designer team wink

@jancborchardt please also tell us if you consider this more of a design change or a bugfix. Only if the old intention was a design bug I would backport. Otherwise this should only come with v5.0 and marked as breaking design change. Not breaking in the sense of the old app code needs to be adjusted but that the component now renders differently and app devs have to decide what versions of Nextcloud they want to ship this.

@GretaD
Copy link
Contributor Author

GretaD commented Nov 11, 2021

12px: grafik

I also still think that the space between icon and text looks a bit too big. Reducing that would give us some more space for long text.

this screenshot doesnt have my changes, check the one on the ticket. The result you see now its the space that the icon "forces" because its 44h and 44w. I am not sure if we should change that.

@nimishavijay
Copy link

Many apps have only one sublevel of hierarchy, no? (Files, Deck, Notes) In that case less indentation would look odd. This is kind of an edge case in Mail.

Would it be possible to enforce this reduced indentation only when there are more than 3 sub levels? What do you think? cc @jancborchardt

@GretaD
Copy link
Contributor Author

GretaD commented Nov 11, 2021

Many apps have only one sublevel of hierarchy, no? (Files, Deck, Notes) In that case less indentation would look odd. This is kind of an edge case in Mail.

Files dont use the component, but i tested it with Deck and it looks very nice. I dont have a screenshot, but try to test it and see. No its not an edge case, icon is too far from the text starting from the main level and then to the children. So it will look odd if we change it only for mail IMO.

@jancborchardt
Copy link
Contributor

The change makes sense and @GretaD’s fix & screenshot looks good – cause the folder icon of the subentry is exactly between the icon and text of the parent.

It is also ok to do it as a general change for every app. Additionally, cause Files is the only of the "Hub" apps which doesn’t use the components yet, could the change also be done there so it looks common?

If it should be backported or not I would say is your call @ChristophWurst.

Signed-off-by: greta <gretadoci@gmail.com>
@ChristophWurst ChristophWurst merged commit b4e5c33 into master Nov 11, 2021
@ChristophWurst ChristophWurst deleted the fix/icon-label-space branch November 11, 2021 14:26
@skjnldsv
Copy link
Contributor

could the change also be done there so it looks common

Please open a ticket on server for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: app-navigation Related to the app-navigation component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants