Skip to content

Commit

Permalink
Merge pull request #1269 from jasongrout/labelwidth2
Browse files Browse the repository at this point in the history
Remove width restriction on Label widgets, and right-align them.
  • Loading branch information
jasongrout authored Apr 10, 2017
2 parents d2588f1 + e235af8 commit c71f8a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions docs/source/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ ipywidgets changelog

A summary of changes in ipywidgets. For more detailed information, see [GitHub](https://github.com/jupyter-widgets/ipywidgets).


7.0
---
Major user-visible changes in ipywidgets 7.0 include:

- The `Label` widget is now right-aligned and has no width restriction: [#1269](https://github.com/jupyter-widgets/ipywidgets/pull/1269)

6.0
---

Expand Down
6 changes: 1 addition & 5 deletions jupyter-js-widgets/css/widgets-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,7 @@
text-overflow: ellipsis;
white-space: nowrap;
line-height: var(--jp-widgets-inline-height);
max-width: var(--jp-widgets-inline-width);
}

.jupyter-widgets.widget-label {
width: var(--jp-widgets-inline-width-tiny);
text-align: right;
}

.widget-inline-hbox .widget-label {
Expand Down

0 comments on commit c71f8a8

Please sign in to comment.