div.App { height: 100vh; width: 100vw; line-height: 1.25em; h1 { font-size: 2em; padding: 1em 0; } div.PhonoChangeApplier { display: grid; width: 100%; place-items: center center; grid-template-columns: repeat(auto-fit, minmax(20em, 1fr)); grid-template-rows: repeat(auto-fill, minmax(300px, 1fr)); div { padding: 1em; overflow-y: scroll; } } }