Skip to content

Commit

Permalink
add el & update css in output_area to match run button in In from #3535
Browse files Browse the repository at this point in the history
Without this change the output and Input areas become unaligned.

This still isn't an ideal fix, but it'll make a release possible without
making the styling problematic.
  • Loading branch information
mpacer committed Jun 14, 2018
1 parent 1918856 commit dd282f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions notebook/static/notebook/js/outputarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ define([
OutputArea.prototype.create_output_area = function () {
var oa = $("<div/>").addClass("output_area");
if (this.prompt_area) {
oa.append($('<div/>').addClass('run_this_cell'));
oa.append($('<div/>').addClass('prompt'));
}
return oa;
Expand Down
3 changes: 1 addition & 2 deletions notebook/static/notebook/less/codecell.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ div.code_cell div.input_prompt {
min-width: 11ex;
}

div.code_cell:hover .run_this_cell {
div.code_cell:hover div.input .run_this_cell {
visibility: visible;
}

Expand Down Expand Up @@ -70,4 +70,3 @@ div.input_area > div.highlight > pre {
padding: 0px;
background-color: transparent;
}

1 change: 1 addition & 0 deletions notebook/static/notebook/less/outputarea.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ div.out_prompt_overlay:hover {

div.output_prompt {
color: @output_prompt_color;
min-width: 11ex;
}

/* This class is the outer container of all output sections. */
Expand Down

0 comments on commit dd282f6

Please sign in to comment.