AmoyCreative

Read Time: 2 minutes |

Filament Tables: Adding Scroll Behavior to Filters using TailwindCSS

Although Filament offers an impressive admin panel, the dropdown menu may extend well beyond the viewport if your table has many filters or numerous toggleable columns. Particularly on smaller screens, this results in a frustrating user experience.

Thankfully, you can keep your interface tidy and functional by making these panels scrollable with a little custom CSS.

We’ll use the following custom CSS to:

  • Limit the height of the column toggle dropdown ( .fi-ta-col-toggle .fi-dropdown-panel)
  • Add vertical scrolling if the content overflows
  • Add scroll to the filter form area ( .fi-fo-component-ctn)

Here’s the custom CSS:

Update the CSS file

Now, when you open the Column Toggle dropdown or Filter Panel, if there are too many items, you’ll see a scrollable area instead of content overflowing beyond the screen.

Before

  • Filters or column toggles could extend below the viewport
  • Users had to scroll the whole page

After

  • Each section scrolls independently
  • Cleaner, more usable interface

Bonus: Accessibility & UX Tips

  • Consider adding scroll-behavior: smooth for better UX (though auto is more predictable in dropdowns).
  • You can add visual indicators for scrolling using shadow or gradient mask techniques.
  • Ensure tab order is not broken by scroll containers — test with keyboard.

This small tweak significantly improves the usability of complex Filament tables, especially for admin panels with large datasets. Always remember to test across screen sizes and accessibility tools.