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

Is there a way to not display mols2grid-id #57

Open
PatWalters opened this issue Aug 25, 2023 · 2 comments
Open

Is there a way to not display mols2grid-id #57

PatWalters opened this issue Aug 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@PatWalters
Copy link

It appears that mols2grid-id is displayed in the upper left of each cell. Is there a way to turn this off and not display mols2grid-id.

@cbouy
Copy link
Owner

cbouy commented Aug 26, 2023

Hi @PatWalters

You can do this by using custom CSS:

mols2grid.display(
    <...>
    custom_css="""
    .data-mols2grid-id-display { display: none }
    """
)

You can also add .m2g-cell { padding-top: 0 !important } in there to remove the padding between the top of each cell and the first field displayed (usually the image).

@PatWalters
Copy link
Author

Thanks for the quick response @cbouy. It would be handy to have a flag that would turn this off.

@cbouy cbouy added the enhancement New feature or request label Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants