TanStackT
TanStack16mo ago
1 reply
urgent-maroon

Preserve cells alignment after adding virtualization to shadcn data table.

I am using shadcn data table and trying to implement virtualization, but as soon as I add virtualization to it the cell alignment breaks and everything adopts randow width. Is there a way to preserve the default cell styling?

I have attached related photos. Thanks in advance.
Screenshot_2024-09-29_at_12.03.14_AM.png
Screenshot_2024-09-29_at_12.03.33_AM.png
Screenshot_2024-09-29_at_12.04.05_AM.png
Screenshot_2024-09-29_at_12.04.33_AM.png
Screenshot_2024-09-29_at_12.05.05_AM.png
Was this page helpful?