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

How to remove icons from options? #29

Open
immrn opened this issue Feb 9, 2023 · 3 comments
Open

How to remove icons from options? #29

immrn opened this issue Feb 9, 2023 · 3 comments

Comments

@immrn
Copy link

immrn commented Feb 9, 2023

Is it possible to remove the icons from all options?
Using a string that doesn't represent a bootstrap icon like icons=["none"] still leaves a space where the icon would be positioned (green line in the picture).
option_menu

I'm asking for a way to remove the icons, so they won't leave a space.

@fgdvir
Copy link
Collaborator

fgdvir commented May 18, 2023

What would you have wanted to have there instead? The option menu takes the whole width anyways, so I'm not sure what other behavior we could have here.

@immrn
Copy link
Author

immrn commented May 26, 2023

There is a blank, which you can't get rid of. So it would be nice, if the string of an option (like "12h" in my example) would be centered. As you can see "12h" and all the other strings are not centered correctly in their box. They are slightly right-aligned.
Edit: I'm using st.set_page_config(layout="centered") instead of wide.

@kaansariveli
Copy link

styles={
    "icon": {"display": "none"},
}

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

No branches or pull requests

3 participants