Skip to content

Commit 1064fcf

Browse files
authored
Merge pull request #245 from davidbailey00/fix-hidden-buttons
Fix hidden toolbar icons
2 parents 7db6dd2 + 6cf332a commit 1064fcf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

js/src/mpl_widget.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
.jupyter-matplotlib-button {
1414
width: calc(var(--jp-widgets-inline-width-tiny) / 2 - 2px);
15-
overflow: hidden;
16-
padding: 0;
15+
padding: 0 !important;
1716
}
1817

1918
/* Figure */

js/src/toolbar_widget.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ToolbarView extends widgets.DOMWidgetView {
4646
});
4747

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

5252
this.el.appendChild(this.toggle_button);
@@ -76,7 +76,7 @@ export class ToolbarView extends widgets.DOMWidgetView {
7676
);
7777

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

8282
this.buttons[method_name] = button;

0 commit comments

Comments
 (0)