Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

html repr wrapping in firefox #91

Closed
dcherian opened this issue May 17, 2022 · 3 comments
Closed

html repr wrapping in firefox #91

dcherian opened this issue May 17, 2022 · 3 comments
Labels
bug Something isn't working html repr HTML representation in a notebook

Comments

@dcherian
Copy link

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

@TomNicholas TomNicholas added bug Something isn't working html repr HTML representation in a notebook labels May 18, 2022
@keewis
Copy link
Contributor

keewis commented Oct 3, 2022

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.

@eni-awowale
Copy link

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

@keewis
Copy link
Contributor

keewis commented Aug 11, 2024

this has been fixed by pydata/xarray#8930

@keewis keewis closed this as completed Aug 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working html repr HTML representation in a notebook
Projects
None yet
Development

No branches or pull requests

4 participants