cbouy / mols2grid

Interactive molecule viewer for 2D structures
https://mols2grid.readthedocs.io
Apache License 2.0
206 stars 25 forks source link

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

Open PatWalters opened 10 months ago

PatWalters commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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