Skip to content

fix(chat): enhance pointer event handling in chat components#38385

Merged
WTW0313 merged 2 commits into
mainfrom
fix/web-app-chat-ui
Jul 3, 2026
Merged

fix(chat): enhance pointer event handling in chat components#38385
WTW0313 merged 2 commits into
mainfrom
fix/web-app-chat-ui

Conversation

@WTW0313

@WTW0313 WTW0313 commented Jul 3, 2026

Copy link
Copy Markdown
Member

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

Fixes inner ticket 3232

Problem: the chat footer spans the full conversation width, so the blank space around the composer intercepted pointer events and blocked interactions with the content underneath.

Fix: make the footer and inner layout pass pointer events through by default, then restore pointer events only on the actual interactive controls, including the chat input, feature bar, suggested-question buttons, and stop-responding button.

Screenshots

Before:

chat-ui-bug.mp4

After:

chat-ui-fixed.mp4

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 make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 3, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jul 3, 2026
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.29%. Comparing base (81cc43b) to head (0f346af).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #38385      +/-   ##
==========================================
- Coverage   85.29%   85.29%   -0.01%     
==========================================
  Files        4993     4993              
  Lines      263995   263997       +2     
  Branches    50097    50099       +2     
==========================================
+ Hits       225179   225180       +1     
- Misses      34408    34409       +1     
  Partials     4408     4408              
Flag Coverage Δ
dify-ui 94.93% <ø> (ø)
web 84.86% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WTW0313 WTW0313 enabled auto-merge July 3, 2026 09:13
@WTW0313 WTW0313 added this pull request to the merge queue Jul 3, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 3, 2026
Merged via the queue into main with commit 5b4ceac Jul 3, 2026
39 checks passed
@WTW0313 WTW0313 deleted the fix/web-app-chat-ui branch July 3, 2026 09:58
WTW0313 added a commit that referenced this pull request Jul 7, 2026
WTW0313 added a commit that referenced this pull request Jul 7, 2026
WTW0313 added a commit that referenced this pull request Jul 7, 2026
WTW0313 added a commit that referenced this pull request Jul 7, 2026
wylswz pushed a commit that referenced this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants