Make ModalBody vertically scrollable

He @lechat

Try adding the scrollable=True parameter to the dbc.Modal like this:

        dbc.Modal(
            [
                dbc.ModalHeader("This modal's content is really high!"),
                dbc.ModalBody(
                    html.Div(
                        [
                            dbc.Card(
                                f"Card {i}",
                                body=True,
                                style={"minWidth": "200px"},
                                className="mx-2",
                            )
                            for i in range(1, 10)
                        ],                       
                    )
                ),
            ],
            id="modal",
            scrollable=True
        ),
    ],
2 Likes