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 Oct 5, 2020
1 parent ffaa1b6 commit 8f3dc70
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 @@ -6,6 +6,7 @@
* Added `__getitem__` magic to InferenceData ([1395](https://github.com/arviz-devs/arviz/pull/1395))

### Maintenance and fixes
* 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 8f3dc70

Please sign in to comment.