Skip to content

fix: prevent JSON Settings Editor header actions from clipping on resize (fixes PlatformNetwork/bounty-challenge#21915)#15

Closed
echobt wants to merge 0 commit intomainfrom
fix/issue-21915
Closed

fix: prevent JSON Settings Editor header actions from clipping on resize (fixes PlatformNetwork/bounty-challenge#21915)#15
echobt wants to merge 0 commit intomainfrom
fix/issue-21915

Conversation

@echobt
Copy link
Copy Markdown
Contributor

@echobt echobt commented Feb 27, 2026

Fix

Prevents the JSON Settings Editor header action buttons from being clipped after window resize.

Changes

  • JsonSettingsEditor.tsx: Added flex-wrap and gap-2 to the header container so it wraps gracefully
  • Added flex-shrink-0 to the actions container so buttons don't collapse
  • Added min-w-0 on flex children that should truncate (title/breadcrumb) rather than the action buttons
  • The scope tabs section uses flex-wrap min-w-0 to allow wrapping at narrow widths

Root Cause

The header bar used flexbox but the actions container (buttons for copy, reset, etc.) had no shrink protection, causing them to collapse and clip when the window was resized narrower.

Fixes PlatformNetwork/bounty-challenge#21915

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.

[BUG] [alpha] JSON Settings Editor header actions are clipped after window resize

1 participant