Skip to content

fix: disable panel resize handles when panels are collapsed#8183

Merged
mscolnick merged 1 commit intomarimo-team:mainfrom
maxkoretskyi:fix/disable-resize-handle-when-collapsed
Feb 9, 2026
Merged

fix: disable panel resize handles when panels are collapsed#8183
mscolnick merged 1 commit intomarimo-team:mainfrom
maxkoretskyi:fix/disable-resize-handle-when-collapsed

Conversation

@maxkoretskyi
Copy link
Contributor

📝 Summary

Closes #7184

Description of Changes

When the left sidebar or bottom developer panel is collapsed, the PanelResizeHandle from react-resizable-panels remains active. This causes:

  • A resize cursor (col-resize / row-resize) to appear when hovering over the collapsed panel edge
  • The panel to be draggable open from the edge, bypassing the sidebar icon toggle

The fix adds the built-in disabled prop to both PanelResizeHandle components, disabling them when their respective panels are collapsed. When disabled, the handle does not register with the parent PanelGroup, so no hit area, cursor, or drag behavior is active.

Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Tests have been added for the changes made.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Pull request title is a good summary of the changes - it will be used in the release notes.

@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 9, 2026 8:15am

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mscolnick mscolnick merged commit 5e472d3 into marimo-team:main Feb 9, 2026
36 of 38 checks passed
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.10-dev16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Front End Interactivity - Cursor still indicating left panel is resizable when left panel is collapsed

2 participants