Skip to content

Commit

Permalink
Prevent wrapping group names in InferenceData HTML repr (#1407)
Browse files Browse the repository at this point in the history
* Reset grid for group names

* Update changelog
  • Loading branch information
sethaxen authored and ahartikainen committed Oct 5, 2020
1 parent e97df39 commit 80ef505
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

### Maintenance and fixes
* Updated CmdStanPy interface ([1409](https://github.com/arviz-devs/arviz/pull/1409))
* prevent wrapping group names in InferenceData repr_html ([1407](https://github.com/arviz-devs/arviz/pull/1407))

### Deprecation

Expand Down
4 changes: 4 additions & 0 deletions arviz/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ body.vscode-dark {
grid-template-columns: 150px auto auto 1fr 20px 20px;
}

.xr-sections.group-sections {
grid-template-columns: auto;
}

.xr-section-item {
display: contents;
}
Expand Down
2 changes: 1 addition & 1 deletion arviz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ class HtmlTemplate:
<div class='xr-header'>
<div class="xr-obj-type">arviz.InferenceData</div>
</div>
<ul class="xr-sections">
<ul class="xr-sections group-sections">
{}
</ul>
</div>
Expand Down

0 comments on commit 80ef505

Please sign in to comment.