Skip to content

Commit

Permalink
Merge pull request #245 from davidbailey00/fix-hidden-buttons
Browse files Browse the repository at this point in the history
Fix hidden toolbar icons
  • Loading branch information
martinRenou committed Jul 15, 2020
2 parents 7db6dd2 + 6cf332a commit 1064fcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions js/src/mpl_widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

.jupyter-matplotlib-button {
width: calc(var(--jp-widgets-inline-width-tiny) / 2 - 2px);
overflow: hidden;
padding: 0;
padding: 0 !important;
}

/* Figure */
Expand Down
4 changes: 2 additions & 2 deletions js/src/toolbar_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class ToolbarView extends widgets.DOMWidgetView {
});

const icon = document.createElement('i');
icon.classList = 'center fa fa-bars';
icon.classList = 'center fa fa-fw fa-bars';
this.toggle_button.appendChild(icon);

this.el.appendChild(this.toggle_button);
Expand Down Expand Up @@ -76,7 +76,7 @@ export class ToolbarView extends widgets.DOMWidgetView {
);

const icon = document.createElement('i');
icon.classList = 'center fa fa-' + image;
icon.classList = 'center fa fa-fw fa-' + image;
button.appendChild(icon);

this.buttons[method_name] = button;
Expand Down

0 comments on commit 1064fcf

Please sign in to comment.