I want to build a video conference screen layout using Tailwindcss, I want it to fit items automatically in cols and rows:
If I style like this:
<div class="grid grid-flow-col gap-4">
<video-app class="video" *ngFor="let video of studentsVideo" [video]="video" ></video-app>
</div>
it only expands columns and does not create new rows. how can I style this layout?
Update:
We know that we have users to join the conference. we have the length of users and we can dynamically set grid-cols-{n} and grid-rows-{n} but how we can calculate it to detect the best-fit numbers for rows and cols?
thank you.


