[PR #23840] fix: implement tooltip for dataset description in sidebar #30415

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

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

State: closed
Merged: No


[!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 #23839.

Fixes #23839

Summary

This PR resolves dataset sidebar description overflow issues during expand/collapse animations by implementing an elegant tooltip solution. Instead of displaying description text inline (which causes animation overflow), the description is now shown via hover tooltip on the dataset name.

Technical Solution:

  • Replace inline description rendering with hover tooltip on dataset name
  • Use existing Tooltip component with right-start positioning to avoid layout conflicts
  • Add cursor-help visual cue to indicate interactive element
  • Implement smart disabling when sidebar collapsed or no description available
  • Maintain all existing animation behaviors without modification

Key Benefits:

  • Eliminates animation overflow completely
  • Preserves access to full description content
  • Maintains clean sidebar layout
  • Follows modern UI interaction patterns
  • Zero impact on existing animation system

Screenshots

Before After
Description text overflows sidebar boundaries during animation Clean animation with tooltip on hover showing full description

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
**Original Pull Request:** https://github.com/langgenius/dify/pull/23840 **State:** closed **Merged:** No --- > [\!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 2. Ensure there is an associated issue and you have been assigned to it > 3. Use the correct syntax to link this PR: `Fixes #23839`. Fixes #23839 ## Summary This PR resolves dataset sidebar description overflow issues during expand/collapse animations by implementing an elegant tooltip solution. Instead of displaying description text inline (which causes animation overflow), the description is now shown via hover tooltip on the dataset name. **Technical Solution:** - Replace inline description rendering with hover tooltip on dataset name - Use existing `Tooltip` component with `right-start` positioning to avoid layout conflicts - Add `cursor-help` visual cue to indicate interactive element - Implement smart disabling when sidebar collapsed or no description available - Maintain all existing animation behaviors without modification **Key Benefits:** - ✅ Eliminates animation overflow completely - ✅ Preserves access to full description content - ✅ Maintains clean sidebar layout - ✅ Follows modern UI interaction patterns - ✅ Zero impact on existing animation system ## Screenshots | Before | After | |--------|-------| | Description text overflows sidebar boundaries during animation | Clean animation with tooltip on hover showing full description | ## 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. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:47:27 -05:00
yindo closed this issue 2026-02-21 20:47:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30415