Skip to content

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

Merged
echobt merged 2 commits intomainfrom
fix/issue-21915
Feb 27, 2026
Merged

fix: prevent JSON Settings Editor header actions from clipping on resize (fixes PlatformNetwork/bounty-challenge#21915)#23
echobt merged 2 commits intomainfrom
fix/issue-21915

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 27, 2026

Fix for PlatformNetwork/bounty-challenge#21915: JSON Settings Editor header clipped at narrow widths

Changes

  • Added flex-wrap and gap-2 to the header container so items wrap instead of being clipped
  • Added flex-shrink-0 and flex-wrap to the actions container to prevent button clipping

Files Modified

  • src/components/settings/JsonSettingsEditor.tsx

…ize (fixes PlatformNetwork/bounty-challenge#21915)

Add flex layout fixes to the JSON Settings Editor header bar so action
buttons (Show Defaults, Reload, Save) remain visible when the window
is resized narrower:

- Add min-w-0 to the left container (scope tabs + file path) so it can
  shrink below its content size, allowing truncation to work properly
- Add min-w-0 to the file path indicator for proper text truncation
  within the flex parent
- Add flex-shrink-0 to the actions container so buttons never collapse

The existing flex-wrap and gap on the header handle graceful reflow when
space is truly constrained.
@echobt echobt changed the title fix: prevent JSON Settings Editor header actions from clipping on resize (fixes #21915) fix: prevent JSON Settings Editor header actions from clipping on resize (fixes PlatformNetwork/bounty-challenge#21915) Feb 27, 2026
@echobt
Copy link
Contributor Author

echobt commented Feb 27, 2026

Closing: this fix has already been applied directly to the main branch. The branch is based on an older commit and merging it would regress other fixes. The referenced issue is resolved on main.

@echobt echobt closed this Feb 27, 2026
@echobt echobt reopened this Feb 27, 2026
@echobt echobt merged commit 80cb8a2 into main Feb 27, 2026
15 of 17 checks passed
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