Flexible height for rows in function of content

I want to have a flexible height for my rows in function of the content they have. What should I do?

  • I tried changing the css options, and in particular vaadin grid -> ::part(row), but it was useless.
  • I tried using grid.addThemeVariants(GridVariant.LUMO_WRAP_CELL_CONTENT) to wrap the content of the cell, but it was useless.
    Note that I am kinda forcing the content of my cells to return to the line by using the css option white-space: pre-line (to compensate for the \n which is not working).
    image.png