[PR #23407] fix: resolve sidebar animation issues and improve app detail page UX #30265

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

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

State: closed
Merged: Yes


Summary

This PR addresses sidebar animation problems in dataset pages following the pattern established in PR #23221 for consistent smooth transitions.

Issues Fixed:

  • Text squeeze animation issues in datasets sidebar components
  • Inconsistent conditional rendering causing layout shifts

Technical Implementation:

  • Replace conditional rendering with CSS-controlled visibility using opacity and width transitions
  • Apply consistent transition-all duration-200 ease-in-out across components
  • Use pointer-events-none for hidden states to prevent unwanted interactions
  • Maintain whitespace-nowrap to prevent text wrapping issues

Files Modified:

  • web/app/components/app-sidebar/dataset-info.tsx - Fixed text squeeze animation
  • web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx - Resolved ExtraInfo conditional rendering

Related to commit a82b55005b which established the animation pattern for similar fixes.

Screenshots

Before After
Text squeeze animations causing jarring UX Smooth CSS transitions with stable positioning

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/23407 **State:** closed **Merged:** Yes --- Summary This PR addresses sidebar animation problems in dataset pages following the pattern established in PR #23221 for consistent smooth transitions. Issues Fixed: - Text squeeze animation issues in datasets sidebar components - Inconsistent conditional rendering causing layout shifts Technical Implementation: - Replace conditional rendering with CSS-controlled visibility using `opacity` and `width` transitions - Apply consistent `transition-all duration-200 ease-in-out` across components - Use `pointer-events-none` for hidden states to prevent unwanted interactions - Maintain `whitespace-nowrap` to prevent text wrapping issues Files Modified: - `web/app/components/app-sidebar/dataset-info.tsx` - Fixed text squeeze animation - `web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx` - Resolved ExtraInfo conditional rendering Related to commit a82b55005b8f3d4532d17e1181fa894a9987288a which established the animation pattern for similar fixes. Screenshots Before After Text squeeze animations causing jarring UX Smooth CSS transitions with stable positioning Checklist - This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - 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
yindo added the pull-request label 2026-02-21 20:47:10 -05:00
yindo closed this issue 2026-02-21 20:47:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30265