Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to predfined width #6

Open
freiffde opened this issue Aug 11, 2023 · 0 comments
Open

Adapt to predfined width #6

freiffde opened this issue Aug 11, 2023 · 0 comments

Comments

@freiffde
Copy link

As an user
I want the XML-Viewer to adapt to the inherited width
so that when its used in smaller containers it adapts well to the ui

=====

Hey,

I really enjoy the XML-Viewer. I think it has great potential and I currently use it for debugging. For this purpose it works well, I however face issues when wanting it to be smaller/ the xml is overflowing. The inherited width is currently ignored and the overflow is set to visible which cuts off after the screen. It would be great long-term to have a feature in place that allows the XML-Viewer to adapt to the inherited width. Additionally I think of maybe introducing a prop that regulates wether the overflow should be either visible, scroll or if the width should be inherited. When the width is inherited there will be some form of line breaks needed.

I tried to implement it and open a PR, but unfortunately I did get it to work, hence I open this issue if someone else may get it work.

Many thanks!

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

No branches or pull requests

1 participant