mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #336] [CLOSED] fix(ui): prevent folder icon glitch during expand/collapse transition #4569
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4569
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/336
Author: @ghost
Created: 5/1/2026
Status: ❌ Closed
Base:
main← Head:chat_folder_transition_glitch📝 Commits (2)
34a3701fix(ui): prevent folder icon glitch during expand/collapse transition464ba1afix: small incision, drag handle click can collapse the folder.📊 Changes
1 file changed (+86 additions, -72 deletions)
View changed files
📝
packages/client/src/components/layout/ChatSidebar.tsx(+86 -72)📄 Description
Why this change
Fixed a visual glitch in the chat sidebar folder expand/collapse behavior. The folder header row (with rename/trash buttons and chevron) was being stretched and the action buttons jumped below their position before snapping back when a folder was expanded or collapsed. This was caused by framer-motion's
Reorder.Itemlayout animations affecting the entire folder component (header + contents) instead of just the draggable header.What changed
FolderRowcomponent to separate concerns between drag-to-reorder and expand/collapse:Reorder.Itemnow wraps only the folder header row (the draggable part)Reorder.Itemas a plain conditional renderAnimatePresence+motion.div:y: -8 → 0,opacity: 0 → 1,height: 0 → auto0.25swith easing[0.16, 1, 0.3, 1]overflow-hiddenon the container to clip content during height animationmode="wait"toAnimatePresenceto prevent exit animation from being interrupted when rapidly toggling a folder open/closedValidation
pnpm checkpasses locallyManual verification
Docs and release impact
UI evidence (if applicable)
Before
https://github.com/user-attachments/assets/2bf0e762-8282-4e0c-b921-e0835599721d
After
https://github.com/user-attachments/assets/ab3b094f-1769-4d49-a226-ea8b904dd6ee
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.