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

App management navigation has padding on bottom #9974

Closed
jancborchardt opened this issue Jun 23, 2018 · 9 comments
Closed

App management navigation has padding on bottom #9974

jancborchardt opened this issue Jun 23, 2018 · 9 comments
Labels
bug design Design, UI, UX, etc. feature: apps management good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Milestone

Comments

@jancborchardt
Copy link
Member

There is no settings area for settings, so we don’t need the padding on the bottom:
screenshot from 2018-06-23 18-07-05

@nextcloud/designers didn’t we have that in the CSS before?

@jancborchardt jancborchardt added bug design Design, UI, UX, etc. good first issue Small tasks with clear documentation about how and in which place you need to fix things in. feature: apps management labels Jun 23, 2018
@jancborchardt jancborchardt added this to the Nextcloud 14 milestone Jun 23, 2018
@skjnldsv
Copy link
Member

This should be automated with css. I guess we need to also update the positioning of the settings?

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #2189 (App-navigation without settings should not have padding-bottom), #2612 (Non interactive app navigation entry), #3346 (Left shadow in app-navigation missing from user settings), #4629 (App navigation styles: entries in folders not highlighted correctly, incorrect padding for entries with counters), and #5960 (App management: Apps not properly sorted by A-Z).

@jancborchardt
Copy link
Member Author

This should be automated with css.

Yep, as said I thought I remember this worked before. But then again, how can you modify a parent’s style based on if they have a child or not. We could require a class like with-settings (like with-icon) on the #app-navigation?

I guess we need to also update the positioning of the settings?

What do you mean by that? There’s no settings here at all, so nothing to update?

@skjnldsv
Copy link
Member

No, we need to stop using classes as toggles! :)
Css is powerful enough to detect the presence or not of an element. We should properly set things up so nothing is required ;)

@jancborchardt
Copy link
Member Author

Haha – nevermind, we do already have this class and use it in personal settings ;) it’s without-app-settings. I’ll use that.

Css is powerful enough to detect the presence or not of an element. We should properly set things up so nothing is required ;)

Currently you can not modify a parent based on a child using CSS. :) See caniuse :has() CSS relational pseudo-class

@jancborchardt
Copy link
Member Author

Ok, this apparently has to be done by someone who knows Vue, as I have no idea where to insert the class or the logic for it.

Seems either settings/src/components/appNavigation.vue or settings/src/views/Apps.vue

@skjnldsv
Copy link
Member

Currently you can not modify a parent based on a child using CSS. :) See caniuse :has() CSS relational pseudo-class

There are other ways to do that than use a padding on the parent

@jancborchardt
Copy link
Member Author

I know, we can use fancy ways for lots of things – but I can't see how to use them short of rewriting our HTML. Which is not a proper fix in this case where we simply need to add a class we already use.

So if there are other ways we can do this for Nc 14, let me know. :) Otherwise, @juliushaertl @skjnldsv can you educate me where/how I would have to add the class in the Vue template?

@skjnldsv
Copy link
Member

skjnldsv commented Jun 24, 2018

Here you go @jancborchardt #9977 :)

Nonetheless if you want to still improve your vue knowledge, I'd be happy to help ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug design Design, UI, UX, etc. feature: apps management good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Projects
None yet
Development

No branches or pull requests

3 participants