jowilf / starlette-admin

Fast, beautiful and extensible administrative interface framework for Starlette & FastApi applications
https://jowilf.github.io/starlette-admin/
MIT License
593 stars 59 forks source link

Bug: Icons not showing when menu item is in a Dropdown #578

Open sglebs opened 1 week ago

sglebs commented 1 week ago

Describe the bug

I have a menu entry which was at the root admin level but I moved it to inside a dropdown. Its icon no longer shows.

To Reproduce

Before:

    admin.add_view(KnowledgeIngestionProfileAdminView(model=KnowledgeIngestionProfile, icon="fa fa-file-import"))

After:

    admin.add_view(
        DropDown(
            "Knowledge Ingestion",
            icon="fa fa-list",
            views=[
                KnowledgeIngestionProfileAdminView(model=KnowledgeIngestionProfile, icon="fa fa-file-import", label="<<All>>"),
            ],
        )
    )

Environment (please complete the following information):

Additional context N/A

sglebs commented 1 week ago

Both active:

image

One with icon, the other one without.