diff --git a/xarray/core/formatting_html.py b/xarray/core/formatting_html.py index d0cb7c30e91..e6ae7d77dc6 100644 --- a/xarray/core/formatting_html.py +++ b/xarray/core/formatting_html.py @@ -155,7 +155,9 @@ def summarize_index(coord_names, index) -> str: return ( f"
{name}
" f"
{preview}
" - f"
" + # need empty input + label here to conform to the fixed CSS grid layout + f"" + f"" f"" f"" f"
{details}
" diff --git a/xarray/static/css/style.css b/xarray/static/css/style.css index d4f5c104850..b1cefeb2af9 100644 --- a/xarray/static/css/style.css +++ b/xarray/static/css/style.css @@ -75,6 +75,7 @@ body.vscode-dark { .xr-section-item input { display: inline-block; opacity: 0; + height: 0; } .xr-section-item input + label {