datatree icon indicating copy to clipboard operation
datatree copied to clipboard

html repr wrapping in firefox

Open dcherian opened this issue 3 years ago • 2 comments

It's a little too narrow. I couldn't figure out how to fix it by playing in the Developer Console. I'm on the "developer edition" of firefox but it's probably in the release too.

image

dcherian avatar May 17 '22 21:05 dcherian

as far as I can tell, the reason is that the div elements with the xr-wrap class are restricted to a width of 300px (IIUC the min-width property of xr-wrap). Increasing that value (e.g. to 800px) makes the result wider, and thus much easier to read. I have no idea how to integrate that into the datatree formatter, though.

keewis avatar Oct 03 '22 15:10 keewis

I was able to replicate the problem. Here Screenshot 2024-04-11 at 2 43 23 PM

The first dataset tree_hoss doesn't have any groups so it doesn't clump together the way ompixcor does. I think the fix is updating the xr-wrap min-width to 700px. When I tried 800px it went over max-width of 700px.

Here's an example for a min-width of 700px: Screenshot 2024-04-11 at 2 57 29 PM

eni-awowale avatar Apr 11 '24 18:04 eni-awowale