[PR #28929] fix: ensure "No apps found" text is visible on small screens #32237

Closed
opened 2026-02-21 20:51:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/28929

State: closed
Merged: Yes


Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

This PR fixes a UI layout bug where the "No apps found" placeholder text would be hidden behind the "Create App" card when the window size is small or the layout is compressed.

Details:
Problem: The NewAppCard component has a z-index of 10, which caused it to render on top of the "No apps found" text overlay (default z-index: auto) in certain responsive layouts.
Solution:

  • Added z-20 to the empty state container in empty.tsx to ensure it renders above the NewAppCard.
  • Added pointer-events-none to ensure the overlay doesn't block user interactions (clicks/hovers) with the "Create App" card underneath.

Fixes #28688

Screenshots

Before After
befor after

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Additional Note

The file web/.vscode/settings.example.json was initially deleted by accident.
However, it is referenced in web/README.md (line 98) as a template for VS Code linting configuration (rename ... to settings.json).
To maintain consistency with the documentation and developer onboarding experience, this file has been restored in a follow-up commit.

**Original Pull Request:** https://github.com/langgenius/dify/pull/28929 **State:** closed **Merged:** Yes --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 1. Ensure there is an associated issue and you have been assigned to it > 1. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Summary This PR fixes a UI layout bug where the "No apps found" placeholder text would be hidden behind the "Create App" card when the window size is small or the layout is compressed. Details: Problem: The NewAppCard component has a z-index of 10, which caused it to render on top of the "No apps found" text overlay (default z-index: auto) in certain responsive layouts. Solution: - Added `z-20` to the empty state container in `empty.tsx` to ensure it renders above the NewAppCard. - Added `pointer-events-none` to ensure the overlay doesn't block user interactions (clicks/hovers) with the "Create App" card underneath. Fixes #28688 ## Screenshots | Before | After | |--------|-------| |<img width="800" alt="befor" src="https://github.com/user-attachments/assets/5003a6ff-d211-4ddd-9d31-bd2e591e4f52" />|<img width="800" alt="after" src="https://github.com/user-attachments/assets/cca534d6-6df0-43c3-a113-f41800a8ebf6" />| ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [ ] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods ## Additional Note The file `web/.vscode/settings.example.json` was initially deleted by accident. However, it is referenced in `web/README.md` (line 98) as a template for VS Code linting configuration (`rename ... to settings.json`). To maintain consistency with the documentation and developer onboarding experience, this file has been restored in a follow-up commit.
yindo added the pull-request label 2026-02-21 20:51:01 -05:00
yindo closed this issue 2026-02-21 20:51:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32237