Skip to content

fix: hide resize handles on size-locked panels#65

Merged
chloe463 merged 1 commit intomainfrom
fix/locksize-resize-handles
Feb 8, 2026
Merged

fix: hide resize handles on size-locked panels#65
chloe463 merged 1 commit intomainfrom
fix/locksize-resize-handles

Conversation

@chloe463
Copy link
Copy Markdown
Owner

@chloe463 chloe463 commented Feb 8, 2026

Summary

  • Fixes a bug where resize handles were visible on hover for panels with lockSize: true
  • Adds conditional rendering to only show resize handles for resizable panels

Why

The lockSize feature was not working correctly - resize handles appeared visually on hover even though size-locked panels couldn't actually be resized. This created a confusing user experience where the UI suggested an action that wasn't possible.

Changes

  • Modified PanelGridRenderer.tsx to conditionally render resize handles
  • Resize handles now only render when resizeHandleProps is defined
  • When lockSize: true, resizeHandleProps is undefined, so no handles appear

Test Plan

  • Verified type checking passes (yarn typecheck)
  • Verified all 128 tests pass (yarn test)
  • Manually tested in Storybook that size-locked panels no longer show resize handles on hover
  • Confirmed unlocked panels still show resize handles correctly

Notes

This is a minimal fix that resolves the visual inconsistency. The logic in usePanelGrid.ts that sets resizeHandleProps to undefined for locked panels was already correct - the issue was only in the rendering layer.

Resize handles were being rendered in the DOM even when lockSize
was true. They appeared visually on hover despite having no event
handlers. Now conditionally renders handles only when resizeHandleProps
is defined, properly hiding them for size-locked panels.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@chloe463 chloe463 merged commit 5e8f729 into main Feb 8, 2026
3 checks passed
@chloe463 chloe463 deleted the fix/locksize-resize-handles branch February 8, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant