Skip to content

DropDown with icons don't look nice #514

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

Closed
DarkSide666 opened this issue Jul 2, 2018 · 5 comments
Closed

DropDown with icons don't look nice #514

DarkSide666 opened this issue Jul 2, 2018 · 5 comments
Assignees

Comments

@DarkSide666
Copy link
Member

DarkSide666 commented Jul 2, 2018

If you put dropdown with icons, then it don't look nice.
See this

9f96efd6f1c01d0d1bb065e81e29745b33f5a44d27ffbf3352 pimgpsh_fullsize_distr

screenshot

should be something like no-wrap and width of dropdown maybe (not sure) should be equal with longest child element.

@ibelar
Copy link
Contributor

ibelar commented Jul 3, 2018

This is more of a css issue. semantic ui dropdown will only use space that it's container is using.
If this is add in form using fiedlGroup then try not using 'width' option for dropdown field or setup a wider option.

@DarkSide666
Copy link
Member Author

Ok, setting $field->width = 'four' or using $field->setStyle('width', '12em') works for me.

So if there is no other option how to set dropdown menu elements as no-wrap, then I guess there is nothing we can do about it :(

@DarkSide666
Copy link
Member Author

Adding white-space: nowrap; to menu elements helps putting them in single line, but that doesn't make menu container wider and text goes outside of menu container.

@romaninsh
Copy link
Member

this may also be issue with the surrounding ui or multiple CSS files. Can you try to reproduce this issue in ui/demos/ ?

@romaninsh
Copy link
Member

closing this. Set "width" to your field using grid system. See semantic ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants