-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Design for the aspect dropdown in the publisher #5718
Conversation
not bad, but I'm not sure the button should be the same width as the contents. I somewhat like the "minimal" width. |
Yeah this can probably break the design is someone has anaspectwithaverylongnamelikethat. |
Yeah, me too. What I would consider changing is aligning the left side with the button instead of the right side though. |
Yeah, I wanted to ask you advice on this one. Problem is : BS dropdown requires the following structure :
I don't know how to set the I could, as @jhass says, changing the aligning of the list and let the width unfixed. Problem is the following : Which makes it elegant if the user has a very long aspect name but inelegant if not : Here is what I think : given that, anyway, the number of chars available for an aspect name is 20, let's adapt the width to that maximum width ? |
Huh? I literally mean just changing the alignment, still keeping the round borders at the top. |
I personnally don't like the BS' default space between the button and the dropdown. I find it visually illogic. |
It still looks too big to me tbh, to much empty space in the button. |
This is how it will look if someone has a very long aspect name anyway. |
I find this really ugly :/ |
I didn't mean to do a pixel perfect version of how it should look like, just demonstrating the idea, use your imagination! |
My imagination tells me it's not a good way. It looks really weird to me to have a button that is not the width of the dropdown. Otherwise, the only solution I see is a bit of JS to dynamically adapt the button to the width of dropdown:
|
This is how the blueprint dropdown was though. |
I also don't like the over-long button, I'm afraid. Buttons should be only as long as necessary for the text contained within them, unless there's a very good reason to make a button longer. Having the drop-down longer than the button is no problem to me. |
Yeah, still no improvement to me either I'm afraid. |
Hmm... It seems like we are in a dead end :/ |
@AugierLe42e the aspect dropdown is also used in hovercards and on the profile page. So this PR brings inconsistency. If the box expands to the left and not to the right like you suggest, it's because the button is placed on the right of the profile page. So, someone with big aspect name would see the dropdown cut by the end of the screen if it was shown at the right instead of left like it is now. |
Ok, closing it so. |
Before :
after :