andypf / json-viewer

MIT License
26 stars 1 forks source link

fix(overflow): fix div overflow by applying word-break #8

Closed andypf closed 2 months ago

andypf commented 2 months ago

Fix div overflow by applying word-break: break-all to prevent long strings from breaking layout

This PR addresses an issue where long unbroken strings (e.g., letters and numbers without spaces) in JSON properties cause divs to overflow, breaking the layout. The solution involves applying the CSS property word-break: break-all to ensure that such strings wrap correctly within their containers, preventing overflow.

Related Issues