mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #720] [MERGED] fix(chat-folder): improve chat folder click area #4745
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#4745
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/720
Author: @ghost
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @Xelvanis
Base:
main← Head:fix_chat_folder_click📝 Commits (2)
27c008bfix(chat-folder): improve chat folder click area7227e66fix(chat-folder): refine click zone, fix rename input propagation, add keyboard support📊 Changes
1 file changed (+56 additions, -37 deletions)
View changed files
📝
packages/client/src/components/layout/ChatSidebar.tsx(+56 -37)📄 Description
Linked issue
Closes #278
Improves #286
Why this change
Clicking chat sidebar folder's blank space around grip icon was inadvertently triggering the folder to open/close because the entire folder header row had a single click handler. This improves the click area to exclude the blank space around the grip icon.
What changed
onClickfrom the folder header<div>that was causing unintended toggle behavior<div>that spans from the chevron arrow through the folder namee.stopPropagation()to the toggle handler to prevent conflicts with Framer Motion's drag reorder systeme.stopPropagation()to the rename input'sonKeyDownandonBlurhandlers so typing in the rename field doesn't toggle the foldere.stopPropagation()and remain unaffectedValidation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
https://github.com/user-attachments/assets/5567f7ee-042b-426c-8548-ae177e64939b
https://github.com/user-attachments/assets/b4aad10f-44e4-46a3-9321-ce016aba0a90
Summary by CodeRabbit
Bug Fixes
Accessibility
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.