Skip to content

Commit c852813

Browse files
authored
Merge pull request #3687 from mpacer/consistent_prompt
add el & update css in output_area to match run button in input prompt from #3535
2 parents 1918856 + dd282f6 commit c852813

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

notebook/static/notebook/js/outputarea.js

+1
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ define([
370370
OutputArea.prototype.create_output_area = function () {
371371
var oa = $("<div/>").addClass("output_area");
372372
if (this.prompt_area) {
373+
oa.append($('<div/>').addClass('run_this_cell'));
373374
oa.append($('<div/>').addClass('prompt'));
374375
}
375376
return oa;

notebook/static/notebook/less/codecell.less

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ div.code_cell div.input_prompt {
4242
min-width: 11ex;
4343
}
4444

45-
div.code_cell:hover .run_this_cell {
45+
div.code_cell:hover div.input .run_this_cell {
4646
visibility: visible;
4747
}
4848

@@ -70,4 +70,3 @@ div.input_area > div.highlight > pre {
7070
padding: 0px;
7171
background-color: transparent;
7272
}
73-

notebook/static/notebook/less/outputarea.less

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ div.out_prompt_overlay:hover {
4141

4242
div.output_prompt {
4343
color: @output_prompt_color;
44+
min-width: 11ex;
4445
}
4546

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

0 commit comments

Comments
 (0)