Skip to content

fix(ui): use consistent empty state styling between list and folder views#15555

Open
AhmadYasser1 wants to merge 1 commit intopayloadcms:mainfrom
AhmadYasser1:fix/ui-empty-list-folder-view-styling
Open

fix(ui): use consistent empty state styling between list and folder views#15555
AhmadYasser1 wants to merge 1 commit intopayloadcms:mainfrom
AhmadYasser1:fix/ui-empty-list-folder-view-styling

Conversation

@AhmadYasser1
Copy link

What?

Uses the shared NoListResults component in the list view empty state, matching the styling already used by the folder and browse-by-folder views.

Why?

The empty state for the list view (left-aligned, no border) looks completely different from the folder view empty state (centered, dashed border). This inconsistency was reported in #15524.

How?

  • Replaced the inline collection-list__no-results div in DefaultListView with the existing NoListResults component from elements/NoListResults
  • Removed the now-unused &__no-results SCSS block from List/index.scss
  • Updated e2e test selectors from .collection-list__no-results to .no-results

Fixes #15524

…iews

Replaces the inline no-results div in the list view with the shared
NoListResults component already used by folder and browse-by-folder
views. This ensures both views render the same centered, bordered
empty state container when a collection has no documents.

Removes the now-unused .collection-list__no-results SCSS block and
updates e2e test selectors to match the new .no-results class name.

Fixes payloadcms#15524
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.

Empty list and folder view differ completely in styling

1 participant