Skip to content

fix: prevent table filter dropdown clipping#1

Open
tizianozonta wants to merge 1 commit into
SpykApp:mainfrom
tizianozonta:fix/table-overflow-dropdown
Open

fix: prevent table filter dropdown clipping#1
tizianozonta wants to merge 1 commit into
SpykApp:mainfrom
tizianozonta:fix/table-overflow-dropdown

Conversation

@tizianozonta

Copy link
Copy Markdown

Problem

In Filament tables with few records, opening the filters panel causes the dropdown to be clipped by the container edges.

Cause

.fi-ta-ctn has overflow: hidden (used to clip the rounded corners). When the table is short, the container is too small and the overflow clips the header dropdown.

Fix

overflow: hidden -> overflow: visible on .fi-ta-ctn.

Trade-off

  • Rounded corners no longer clip child content (acceptable).
  • Horizontal scrolling of wide tables is handled by the child .fi-ta-content (overflow-x-auto) in Filament v4/v5, so it should not break. To be confirmed in the browser with a many-column table.

Change .fi-ta-ctn overflow from hidden to visible so the filter
dropdown is not clipped when a Filament table has few records and
the container is short.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant