Sticky Table Column Headers

How can I make the column names header sticky? (after i scrolled down below it, i want it to stick at the top)
4 Replies
ruski
ruskiOP3d ago
doesn't work
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';

div.fi-ta-content {
@apply h-screen;
}

table.fi-ta-table th {
@apply sticky top-0 text-gray-700 bg-gray-100 bg-gray-800 dark: dark:text-gray-200 dark:border-gray-700;
}
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';

div.fi-ta-content {
@apply h-screen;
}

table.fi-ta-table th {
@apply sticky top-0 text-gray-700 bg-gray-100 bg-gray-800 dark: dark:text-gray-200 dark:border-gray-700;
}
Matthew
Matthew3d ago
you need to run npm run build to recompile the css classes
ruski
ruskiOP3d ago
gotchu, the only issue is this doesn't make the header sticky, it just makes the table's content scrollable.
Want results from more Discord servers?
Add your server