[material-ui][Grid] Wrapped Unstable_Grid2 containers increasing height for each word in a grid item #41212
Labels
component: Grid
The React component.
package: material-ui
Specific to @mui/material
support: question
Community support but can be turned into an improvement
Steps to reproduce
Link to live example: (codesandbox)
The code sample shows three instances of the exact same chunk of logic:
The only differences between them is the amount of words in the Grid item component, yet the height increasing based on the number of words, not the length of the text.
Current behavior
The height of the Grid item is based on the amount of words regardless of size
Expected behavior
The total size of the text would be relevant, but not the word count
Context
I am in the progress of migrating from a Material v4 to v5. I attempted using the standard Grid which completely failed and based on #29266 I decided to attempt Grid2 but am running into other issues as well.
This is an extremely simplified example of an issue I am running into.
Your environment
No response
Search keywords: Materialv5 Grid2 Unstable_Grid2 nested containers
The text was updated successfully, but these errors were encountered: